From c141d011d10acad351d716ac4ad716907ea9683d Mon Sep 17 00:00:00 2001 From: DokaDoka Date: Sun, 11 Dec 2022 23:46:55 +1100 Subject: [PATCH] tweak(resource/zoneCreator): specify vec2 --- resource/zoneCreator/client.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/resource/zoneCreator/client.lua b/resource/zoneCreator/client.lua index 9c29e59..29f936f 100644 --- a/resource/zoneCreator/client.lua +++ b/resource/zoneCreator/client.lua @@ -182,13 +182,13 @@ local function startCreator(arg) local rad = math.rad(-heading) local sinH = math.sin(rad) local cosH = math.cos(rad) - local center = vec(xCoord, yCoord) + local center = vec2(xCoord, yCoord) ---@type vector2[] points = { - center + vec((width * cosH + length * sinH), (length * cosH - width * sinH)) / 2, - center + vec(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2, - center + vec(-(width * cosH + length * sinH), -(length * cosH - width * sinH)) / 2, - center + vec((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2, + center + vec2((width * cosH + length * sinH), (length * cosH - width * sinH)) / 2, + center + vec2(-(width * cosH - length * sinH), (length * cosH + width * sinH)) / 2, + center + vec2(-(width * cosH + length * sinH), -(length * cosH - width * sinH)) / 2, + center + vec2((width * cosH - length * sinH), -(length * cosH + width * sinH)) / 2, } drawLines()