add deep-copy method

This commit is contained in:
PeaAshMeter 2025-08-17 06:18:24 +03:00
parent 7753413385
commit a29609018d

View File

@ -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