From c60a32401066599b4461717bf5666b3900c0a332 Mon Sep 17 00:00:00 2001 From: Matthew Blanchard Date: Fri, 25 Dec 2015 18:44:03 -0500 Subject: [PATCH] Fixed some small holdovers from vec3 remaining in vec2. --- modules/vec2.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/vec2.lua b/modules/vec2.lua index b987128..ed7b160 100644 --- a/modules/vec2.lua +++ b/modules/vec2.lua @@ -216,14 +216,14 @@ function vec2_mt.__call(self, x, y, z) end function vec2_mt.__unm(a) - return vec2.new(-a.x, -a.y, -a.z) + return vec2.new(-a.x, -a.y) end function vec2_mt.__eq(a,b) assert(vec2.isvector(a), "__eq: Wrong argument type for left hand operant. ( expected)") assert(vec2.isvector(b), "__eq: Wrong argument type for right hand operant. ( expected)") - return a.x == b.x and a.y == b.y and a.z == b.z + return a.x == b.x and a.y == b.y end function vec2_mt.__add(a, b)