Skip to content

shz_mat4x4_set_rotation_quat

Markdown
SHZ_INLINE void shz_mat4x4_set_rotation_quat(shz_mat4x4_t* m, shz_quat_t q) SHZ_NOEXCEPT;

Sets just the rotational component of the matrix to the orientation given by a quaternion, keeping the other elements in-tact.

NameTypeDescription
mshz_mat4x4_t *
qshz_quat_t

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.