Skip to content

shz_mat4x4_get_rotation

Markdown
SHZ_INLINE void shz_mat4x4_get_rotation(const shz_mat4x4_t* mat, float* radians, shz_vec3_t* axis) SHZ_NOEXCEPT;

Extracts the angle-axis rotational component from the given 4x4 matrix.

NameTypeDescription
matconst shz_mat4x4_t *Source 4x4 matrix.
radiansfloat *Pointer for returning the angle in radians.
axisshz_vec3_t *Pointer for returning the 3D axis of rotation.

Nothing (void).

  • 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.