diff options
Diffstat (limited to 'code/handmade_math.h')
-rw-r--r-- | code/handmade_math.h | 8 |
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; |