summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'my_math.h')
-rw-r--r--my_math.h12
1 files changed, 12 insertions, 0 deletions
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)
{