]> git.lizzy.rs Git - hydra-dragonfire.git/commitdiff
Fix vector equals operator
authorElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 8 Jun 2022 19:02:46 +0000 (21:02 +0200)
committerElias Fleckenstein <eliasfleckenstein@web.de>
Wed, 8 Jun 2022 19:02:46 +0000 (21:02 +0200)
builtin/vector.lua

index 1b3a3e73dd10b856913d4a25c0ff0d058a208ed8..28dff08d609eaedefd0a4d96748079e18387729a 100644 (file)
@@ -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