From c641b9f54d1167687fa0106384f5dfff2ee22eb1 Mon Sep 17 00:00:00 2001 From: talha Date: Sun, 20 Oct 2024 20:40:51 +0500 Subject: Added RGB as a Vec3 alias type --- source/math.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'source') diff --git a/source/math.h b/source/math.h index 04ef63c..4f34cbc 100755 --- a/source/math.h +++ b/source/math.h @@ -27,7 +27,6 @@ r32 clampf(r32 x, r32 bottom, r32 top) } // ==== Vector Math ==== - union Vec2 { struct { r32 x; @@ -68,8 +67,6 @@ union Vec2 { } }; -#define V3TOV2(v) (Vec2{((v).x), ((v).y)}) - union Vec3 { struct { r32 x; @@ -79,6 +76,8 @@ union Vec3 { r32 data[3]; }; +typedef Vec3 RGB; + union Vec4 { struct { r32 x; -- cgit v1.2.3