From df0d5fcea9682c7890f3b0ae5e8caea2a3867199 Mon Sep 17 00:00:00 2001 From: talha Date: Thu, 31 Aug 2023 11:18:52 +0500 Subject: Refactoring font rendering --- code/math.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'code/math.h') diff --git a/code/math.h b/code/math.h index ca5e96e..2ab7ac3 100644 --- a/code/math.h +++ b/code/math.h @@ -42,8 +42,8 @@ typedef struct Vec2 { Vec2 operator/(f32 s) { Vec2 R = {0}; - R.x = x/2; - R.y = y/2; + R.x = x/s; + R.y = y/s; return R; } @@ -191,8 +191,6 @@ Vec3 CrossProductVec3(Vec3 S, Vec3 K) return R; } - - // @note: I am creating vectors in many places so created a function to make initialising abit easier Vec4 InitVec4(f32 x, f32 y, f32 z, f32 w) { -- cgit v1.2.3