From 2445ab8aa5bcad6dfd234bc57ef16f5ebbad1b04 Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sun, 27 Jul 2025 12:25:56 +0200 Subject: checkpoint --- code/handmade_math.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'code/handmade_math.h') 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 @@ -68,6 +68,14 @@ operator-(v2 A, v2 B) return Result; } +inline v2 +operator-(v2 A, r32 B) +{ + v2 Result; + Result = A + -B; + return Result; +} + inline v2 operator*(r32 A, v2 B) { -- cgit v1.2.3