diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-09-29 20:58:54 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-09-29 20:58:54 -0400 |
commit | 3b8bd135662d99506e8a2ebb30b0d46b57861f74 (patch) | |
tree | 533884d6ada9a14e711fa70f2e4526f247cd6034 /my_math.h | |
parent | 02d7df95cfc2402f0488f66f1dc5fa84cae00934 (diff) |
rewritten graph ui start
Diffstat (limited to 'my_math.h')
-rw-r--r-- | my_math.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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) { |