summaryrefslogtreecommitdiff
path: root/my_math.h
diff options
context:
space:
mode:
authorFox Caminiti <fox@foxcam.net>2022-10-24 22:58:07 -0400
committerFox Caminiti <fox@foxcam.net>2022-10-24 22:58:07 -0400
commit87c3fbb37141827622eeadb89189c267ed4baf87 (patch)
tree74fabb5e25881ce319a513ee2d4f8700a582e30e /my_math.h
parent7804c6a96d26c2e757d09f1864eb73fb81eb280f (diff)
development
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;