Formatting of vec3 isvector now matches formatting of vec2 isvector

This commit is contained in:
Davis Claiborne 2016-07-10 15:47:57 -04:00
parent ee4ec8ba2a
commit 1b19619edf

View File

@ -51,7 +51,7 @@ local function new(x,y,z)
end
local function isvector(v)
return getmetatable(v) == vector or (type(type(v) == "table" and v.x and v.y and v.z) == "number")
return getmetatable(v) == vector or (type(v) == "table" and type(v.x) == "number" and type(v.y) == "number" and type(v.z) == "number")
end
local zero = new(0,0,0)