Skip to content

shz_mat2x2_t

Markdown
typedef SHZ_ALIGNAS(8) struct 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!
  • C++ equivalent: none (usable from C++ as is)
  • Back-ends: n/a (not a function)
  • Defined in: sh4zam/shz_matrix.h:889
  • Module: Matrix, section "Types"