summaryrefslogtreecommitdiff
path: root/src/include/my_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/my_math.h')
-rw-r--r--src/include/my_math.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/my_math.h b/src/include/my_math.h
index 938ed3c..ed26bc8 100644
--- a/src/include/my_math.h
+++ b/src/include/my_math.h
@@ -576,6 +576,12 @@ Length(v2 A)
return sqrt(Inner(A, A));
}
+inline real32
+Length(ImVec2 A)
+{
+ return sqrt(Inner(A, A));
+}
+
inline uint32
Floor(uint32 A, uint32 B)
{