From 0a6e95f855afad36481baa9ed72b39ba6e297df6 Mon Sep 17 00:00:00 2001 From: Fox Caminiti Date: Sat, 5 Nov 2022 11:07:29 -0400 Subject: many changes --- imgui_ops.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'imgui_ops.h') diff --git a/imgui_ops.h b/imgui_ops.h index e2627ab..2bf6335 100644 --- a/imgui_ops.h +++ b/imgui_ops.h @@ -70,6 +70,16 @@ ImVec2 operator/(ImVec2 A, real32 B) return Result; } +ImVec2 operator/(real32 A, ImVec2 B) +{ + ImVec2 Result; + + Result.x = A / B.x; + Result.y = A / B.y; + + return Result; +} + inline bool32 IsRectTouching(ImVec2 Min1, ImVec2 Max1, ImVec2 Min2, ImVec2 Max2) { -- cgit v1.2.3