summaryrefslogtreecommitdiff
path: root/code/math.h
diff options
context:
space:
mode:
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)
{