diff options
Diffstat (limited to 'my_math.h')
-rw-r--r-- | my_math.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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); |