diff --git a/include/hpml/mat4.h b/include/hpml/mat4.h index 1a81621..a9a2eda 100644 --- a/include/hpml/mat4.h +++ b/include/hpml/mat4.h @@ -38,26 +38,30 @@ typedef struct mat4_t { union { - // elements struct { - float m00, m01, m02, m03; - float m10, m11, m12, m13; - float m20, m21, m22, m23; - float m30, m31, m32, m33; - }; - - // sequential - float values[16]; - - // rows - struct - { - float r1[4]; - float r2[4]; - float r3[4]; - float r4[4]; + // elements + struct + { + float m00, m01, m02, m03; + float m10, m11, m12, m13; + float m20, m21, m22, m23; + float m30, m31, m32, m33; + }; + + // sequential + float values[16]; + + // rows + struct + { + float r1[4]; + float r2[4]; + float r3[4]; + float r4[4]; + }; }; + _mat4_t raw4x4f32; }; float* data[4]; } mat4_t;