add deep-copy method

This commit is contained in:
PeaAshMeter 2025-08-17 06:18:24 +03:00
parent 44a71d98ae
commit b34022f123

View File

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