Fixed a typo in the vector3:rot and duplicate vector2.__eq

This commit is contained in:
John 2025-12-26 17:39:47 +03:00
parent 6ddb6765bf
commit 334666a561
2 changed files with 2 additions and 7 deletions

View file

@ -187,7 +187,7 @@ function vector3:rot(angle, axis, convert2deg)
self.y = sx * x + cx * y
end
elseif axis == nil then
local cosx, sx, cy, sy = math.cos(angle), math.sin(angle), math.cos(angle), math.sin(angle)
local cx, sx, cy, sy = math.cos(angle), math.sin(angle), math.cos(angle), math.sin(angle)
local x, y, z = self.x, self.y, self.z
self.x = cx * x - sx * y
self.y = sx * x + cx * y