Skip to content

shz_mat4x4_rotate_x_yz

Markdown
SHZ_INLINE void shz_mat4x4_rotate_x_yz(shz_mat4x4_t* mat, float y, float z) SHZ_NOEXCEPT;

Multiplies and accumulates mat by the rotation about the X axis that turns local +Z toward the unit direction (0, y, z).

NameTypeDescription
matshz_mat4x4_t *The matrix to accumulate into.
yfloatY component of the unit direction.
zfloatZ component of the unit direction.

Nothing (void).

  • (y, z) must be unit length.
  • 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.

shz_xmtrx_rotate_x_yz, shz_mat4x4_init_rotation_x_yz