summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'my_math.h')
-rw-r--r--my_math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/my_math.h b/my_math.h
index e880f82..0f9e429 100644
--- a/my_math.h
+++ b/my_math.h
@@ -527,6 +527,14 @@ Inner(v2 A, v2 B)
}
inline real32
+Inner(ImVec2 A, ImVec2 B)
+{
+ real32 Result = A.x * B.x + A.y * B.y;
+
+ return Result;
+}
+
+inline real32
LengthSq(v2 A)
{
real32 Result = Inner(A, A);