summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-09-29 20:58:54 -0400
committerFox Caminiti <fox@foxcam.net>2022-09-29 20:58:54 -0400
commit3b8bd135662d99506e8a2ebb30b0d46b57861f74 (patch)
tree533884d6ada9a14e711fa70f2e4526f247cd6034 /my_math.h
parent02d7df95cfc2402f0488f66f1dc5fa84cae00934 (diff)
rewritten graph ui start
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)
{