diff options
author | Fox Caminiti <fox@foxcam.net> | 2022-10-24 22:58:07 -0400 |
---|---|---|
committer | Fox Caminiti <fox@foxcam.net> | 2022-10-24 22:58:07 -0400 |
commit | 87c3fbb37141827622eeadb89189c267ed4baf87 (patch) | |
tree | 74fabb5e25881ce319a513ee2d4f8700a582e30e /my_math.h | |
parent | 7804c6a96d26c2e757d09f1864eb73fb81eb280f (diff) |
development
Diffstat (limited to 'my_math.h')
-rw-r--r-- | my_math.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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; |