From f1e12e108869c560d92eb8803e4b5104c7d8f85d Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 8 Aug 2022 17:12:52 -0400 Subject: mask improvements; pen tool added --- my_math.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'my_math.h') 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) { -- cgit v1.2.3