mirror of
https://github.com/1bardesign/batteries.git
synced 2024-11-29 08:14:35 +00:00
[fixed] typo in vec3 tostring
This commit is contained in:
parent
a87380f43c
commit
9fbe8cc3c4
2
vec3.lua
2
vec3.lua
@ -12,7 +12,7 @@ local vec3 = class()
|
|||||||
vec3.type = "vec3"
|
vec3.type = "vec3"
|
||||||
|
|
||||||
--stringification
|
--stringification
|
||||||
vec2.__mt.__tostring = function(self)
|
vec3.__mt.__tostring = function(self)
|
||||||
return ("(%.2f, %.2f, %.2f)"):format(self.x, self.y, self.z)
|
return ("(%.2f, %.2f, %.2f)"):format(self.x, self.y, self.z)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user