Skip to content

shz_mat4x4_get_scale

Markdown
SHZ_INLINE shz_vec3_t shz_mat4x4_get_scale(const shz_mat4x4_t* mat) SHZ_NOEXCEPT;

Exracts the 3D scale factors from the given 4x4 matrix.

NameTypeDescription
matconst shz_mat4x4_t *

shz_vec3_t

  • This routine assumes mat is a standard TRS-style transform matrix, without shearing or reflection.
  • 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.