diff --git a/src/base/base_math.h b/src/base/base_math.h index e34adcc..2b7400b 100644 --- a/src/base/base_math.h +++ b/src/base/base_math.h @@ -1,7 +1,7 @@ #ifndef BASE_MATH_H #define BASE_MATH_H -typedef struct Vec2F32 Vec2F32; +typedef union Vec2F32 Vec2F32; union Vec2F32 { struct { f32 x; @@ -10,14 +10,14 @@ union Vec2F32 { f32 v[2]; }; -typedef struct Vec3F32 Vec3F32; +typedef union Vec3F32 Vec3F32; union Vec3F32 { struct { f32 x; f32 y; f32 z; }; - f32 v[2]; + f32 v[3]; }; Vec3F32 vec3f32_rotate_x(Vec3F32 vector, float angle);