From 3b8bd135662d99506e8a2ebb30b0d46b57861f74 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Thu, 29 Sep 2022 20:58:54 -0400 Subject: rewritten graph ui start --- my_math.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'my_math.h') diff --git a/my_math.h b/my_math.h index e1144e3..df5f8a6 100644 --- a/my_math.h +++ b/my_math.h @@ -443,6 +443,18 @@ struct rectangle v2i Max; }; +inline real32 +Min(real32 A, real32 B) +{ + return (A > B) ? B : A; +} + +inline real32 +Max(real32 A, real32 B) +{ + return (A > B) ? A : B; +} + inline bool32 TestRectangle(rectangle Rect, v2i Test) { -- cgit v1.2.3