diff options
Diffstat (limited to 'source')
-rwxr-xr-x | source/math.h | 5 |
1 files changed, 2 insertions, 3 deletions
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; |