aboutsummaryrefslogtreecommitdiff
path: root/builtin/vector.lua
diff options
context:
space:
mode:
authorElias Fleckenstein <eliasfleckenstein@web.de>2022-06-08 21:02:46 +0200
committerElias Fleckenstein <eliasfleckenstein@web.de>2022-06-08 21:02:46 +0200
commit34f9c500888396781ecb565b566f7a0fb4c3c71b (patch)
tree01d97288e70b8b7159d48755eea9c434da14c9f5 /builtin/vector.lua
parent1f94c5aef9d9c69b940cbdbf1f9443f20f1e7ba9 (diff)
downloadhydra-dragonfire-34f9c500888396781ecb565b566f7a0fb4c3c71b.tar.xz
Fix vector equals operator
Diffstat (limited to 'builtin/vector.lua')
-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