add deep-copy method
This commit is contained in:
parent
7753413385
commit
a29609018d
@ -66,6 +66,10 @@ function __Vec3:subtract(other)
|
|||||||
return self:add(other:invert())
|
return self:add(other:invert())
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function __Vec3:copy()
|
||||||
|
return Vec3 { self.x, self.y, self.z }
|
||||||
|
end
|
||||||
|
|
||||||
--- @param other Vec3
|
--- @param other Vec3
|
||||||
function __Vec3:equalsTo(other)
|
function __Vec3:equalsTo(other)
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user