From 24b0469237285a05d9ffc05d18e43cc5dcdef00f Mon Sep 17 00:00:00 2001 From: Elizabeth Hunt Date: Wed, 22 Apr 2026 20:29:50 -0700 Subject: Stuff --- math.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'math.lua') diff --git a/math.lua b/math.lua index f745dc8..b543fa0 100644 --- a/math.lua +++ b/math.lua @@ -8,7 +8,7 @@ Vec2.__mul = function(a, b) return a.x * b.x + a.y * b.y end Vec2.__div = function(a, b) return vec2(a.x / b.x, a.y / b.y) end -Vec2.__tostring = function(a) return "(" .. a.x .. "," .. a.y .. ")" end +Vec2.__tostring = function(a) return "(" .. fmt(a.x) .. "," .. fmt(a.y) .. ")" end function Vec2:magnitude() return sqrt(self.x * self.x + self.y * self.y) @@ -33,4 +33,4 @@ function normalize_scalar(x) if x == 0 then return 0 end if x < 0 then return -1 end return 1 -end \ No newline at end of file +end -- cgit v1.3