summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-08-08 13:50:34 -0400
committerFox Caminiti <fox@foxcam.net>2022-08-08 13:50:34 -0400
commit635576972024319c15141645d3304db8cd1d1e19 (patch)
tree425bcebd621449cd89973fbf4803c22a9b83a335 /my_math.h
parentbccb1d61907fea45c5e84b29499989f7cee104a5 (diff)
basic bezier path system added
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);