summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'my_math.h')
-rw-r--r--my_math.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/my_math.h b/my_math.h
index 0f9e429..b95e71d 100644
--- a/my_math.h
+++ b/my_math.h
@@ -577,6 +577,11 @@ Ceil(real32 A, real32 B)
return A;
}
+inline bool32
+TestUV(v2 UV) {
+ return (UV.x <= 1.0f && UV.x >= 0.0f && UV.y <= 1.0f && UV.y >= 0.0f);
+}
+
inline real32
Clamp(real32 A, real32 B, real32 C)
{