aboutsummaryrefslogtreecommitdiff
path: root/code/handmade_math.h
diff options
context:
space:
mode:
authorRaymaekers Luca <luca@spacehb.net>2025-07-27 12:25:56 +0200
committerRaymaekers Luca <luca@spacehb.net>2025-07-27 12:25:56 +0200
commit2445ab8aa5bcad6dfd234bc57ef16f5ebbad1b04 (patch)
tree49544e635dbcb80d04025078fb9f1d4c745e87ea /code/handmade_math.h
parentb426303de34dc4a54a4d078568418767832d8b15 (diff)
checkpoint
Diffstat (limited to 'code/handmade_math.h')
-rw-r--r--code/handmade_math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/code/handmade_math.h b/code/handmade_math.h
index 98b2328..6b83f76 100644
--- a/code/handmade_math.h
+++ b/code/handmade_math.h
@@ -69,6 +69,14 @@ operator-(v2 A, v2 B)
}
inline v2
+operator-(v2 A, r32 B)
+{
+ v2 Result;
+ Result = A + -B;
+ return Result;
+}
+
+inline v2
operator*(r32 A, v2 B)
{
v2 Result;