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())
|
||||
end
|
||||
|
||||
function __Vec3:copy()
|
||||
return Vec3 { self.x, self.y, self.z }
|
||||
end
|
||||
|
||||
--- @param other Vec3
|
||||
function __Vec3:equalsTo(other)
|
||||
return
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user