aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--builtin/vector.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/vector.lua b/builtin/vector.lua
index 1b3a3e7..28dff08 100644
--- a/builtin/vector.lua
+++ b/builtin/vector.lua
@@ -35,7 +35,7 @@ function mt_vec2:__len()
return math.sqrt(self:dot(self))
end
-function mt_vec2:__equ(other)
+function mt_vec2:__eq(other)
return type(other) == "table" and self.x == other.x and self.y == other.y
end
@@ -104,7 +104,7 @@ function mt_vec3:__len()
return math.sqrt(self:dot(self))
end
-function mt_vec3:__equ(other)
+function mt_vec3:__eq(other)
return type(other) == "table" and self.x == other.x and self.y == other.y and self.z == other.z
end