mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
Fixed a typo in the vector3:rot and duplicate vector2.__eq
This commit is contained in:
parent
6ddb6765bf
commit
334666a561
2 changed files with 2 additions and 7 deletions
|
|
@ -8,7 +8,7 @@ local vector2 =
|
|||
vector2.__index = vector2
|
||||
|
||||
|
||||
-- vec2 cocnrtuct
|
||||
-- vec2 construct
|
||||
function vector2:new(x, y)
|
||||
if type(x) ~= "number" or type(y) ~= "number" then
|
||||
error("Invalid input argument. Expected two numbers. [ vec2(number, number) ]")
|
||||
|
|
@ -303,11 +303,6 @@ function vector2.__eq(a, b)
|
|||
end
|
||||
|
||||
|
||||
-- eq vec
|
||||
function vector2.__eq(a, b)
|
||||
return a.x == b.x and a.y == b.y
|
||||
end
|
||||
|
||||
function vector2.__tostring(vcrt)
|
||||
return vcrt:strvec2()
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue