Skip to content

shz_mat2x2_t

Markdown
typedef struct SHZ_ALIGNAS(8) shz_mat2x2 {
union {
float elem[4];
float elem2D[2][2];
shz_vec2_t col[2];
};
} shz_mat2x2_t;

Structure representing a 2x2 column-major matrix.

FieldTypeDescription
elemfloat[4]
elem2Dfloat[2][2]
colshz_vec2_t[2]
  • This structure MUST be aligned on 8-byte boundaries!