summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'my_math.h')
-rw-r--r--my_math.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/my_math.h b/my_math.h
index df5f8a6..af6beb1 100644
--- a/my_math.h
+++ b/my_math.h
@@ -66,6 +66,16 @@ inline v2 V2(ImVec2 A)
return(Result);
}
+inline ImVec2 V2(v2 A)
+{
+ struct ImVec2 Result;
+
+ Result.x = A.x;
+ Result.y = A.y;
+
+ return(Result);
+}
+
inline v2i V2i(int32 x, int32 y)
{
v2i Result;