Skip to content

shz_mat4x4_to_quat

Markdown
SHZ_INLINE shz_quat_t shz_mat4x4_to_quat(const shz_mat4x4_t* mat) SHZ_NOEXCEPT;

Converts the given 4x4 orientation matrix into a quaternion.

NameTypeDescription
matconst shz_mat4x4_t *

shz_quat_t

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