Skip to content

shz_mat4x4_inverse

Markdown
void shz_mat4x4_inverse(const shz_mat4x4_t* SHZ_RESTRICT mtrx, shz_mat4x4_t* SHZ_RESTRICT out) SHZ_NOEXCEPT;

Computes the inverse of a 4x4 matrix.

NameTypeDescription
mtrxconst shz_mat4x4_t *SHZ_RESTRICTPointer to the 4x4 matrix to invert.
outshz_mat4x4_t *SHZ_RESTRICTPointer to the resulting inverted matrix.

Nothing (void).

  • In-place inversion (mtrx == out) is not supported.
  • This routine clobbers XMTRX.
  • shz_mat4x4_t and shz_mat2x2_t arguments must be 8-byte aligned. Unaligned data goes through the float[16] parameters of the _unaligned routines.