summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-08 17:12:52 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-08 17:12:52 -0400
commitf1e12e108869c560d92eb8803e4b5104c7d8f85d (patch)
tree5daf3348b04574cb2008cffc7fa76195218fc4ea /my_math.h
parent635576972024319c15141645d3304db8cd1d1e19 (diff)
mask improvements; pen tool added
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)
{