From 87c3fbb37141827622eeadb89189c267ed4baf87 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Mon, 24 Oct 2022 22:58:07 -0400 Subject: development --- my_math.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'my_math.h') 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; -- cgit v1.2.3