summaryrefslogtreecommitdiff
path: root/code/math.h
diff options
context:
space:
mode:
authortalha <talha@talhaamir.xyz>2023-08-31 11:18:52 +0500
committertalha <talha@talhaamir.xyz>2023-08-31 11:18:52 +0500
commitdf0d5fcea9682c7890f3b0ae5e8caea2a3867199 (patch)
treea3d0dfe35f3aac401b93311c7412359b10b25c41 /code/math.h
parent66e84eabf70a11d91abbbe8777b1746573a51bae (diff)
Refactoring font rendering
Diffstat (limited to 'code/math.h')
-rw-r--r--code/math.h6
1 files changed, 2 insertions, 4 deletions
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)
{