From a29609018d724641b21bdb600d255f15571af4ee Mon Sep 17 00:00:00 2001 From: PeaAshMeter Date: Sun, 17 Aug 2025 06:18:24 +0300 Subject: [PATCH] add deep-copy method --- lib/utils/vec3.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/utils/vec3.lua b/lib/utils/vec3.lua index 72b4b16..ca9a10e 100644 --- a/lib/utils/vec3.lua +++ b/lib/utils/vec3.lua @@ -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