From ae8d1431b69220a44f4d66514fad6ad86792472b Mon Sep 17 00:00:00 2001 From: Tenari Date: Thu, 9 Apr 2026 19:07:29 -0500 Subject: [PATCH] Vec2 --- all.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/all.h b/all.h index 787c9c9..364aff9 100644 --- a/all.h +++ b/all.h @@ -423,16 +423,22 @@ union Range1i64 i64 v[2]; }; -typedef union Range1f32 Range1f32; -union Range1f32 -{ +typedef union Vec2f32 { struct { f32 min; f32 max; }; + struct + { + f32 x; + f32 y; + }; f32 v[2]; -}; +} Vec2f32; + +typedef Vec2f32 Range1f32; +typedef Vec2f32 Vec2; #if OS_WINDOWS # define WIN32_LEAN_AND_MEAN