From 34f9c500888396781ecb565b566f7a0fb4c3c71b Mon Sep 17 00:00:00 2001 From: Elias Fleckenstein Date: Wed, 8 Jun 2022 21:02:46 +0200 Subject: [PATCH] Fix vector equals operator --- builtin/vector.lua | 4 ++-- 1 file 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 -- 2.44.0