diff options
| author | Raymaekers Luca <luca@keyfried.com> | 2025-07-27 12:25:56 +0200 |
|---|---|---|
| committer | Raymaekers Luca <luca@spacehb.net> | 2025-07-27 12:25:56 +0200 |
| commit | fab95e6bc64517334853a86fde85540bfcd512c3 (patch) | |
| tree | 49544e635dbcb80d04025078fb9f1d4c745e87ea /code/handmade_math.h | |
| parent | bca40ba9b46c3405675006cb151c1021dbabe2e5 (diff) | |
checkpoint
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; |
