Skip to content

shz_mat4x4_rotate_y_xz

Markdown
SHZ_INLINE void shz_mat4x4_rotate_y_xz(shz_mat4x4_t* mat, float x, float z) SHZ_NOEXCEPT;

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

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

Nothing (void).

  • (x, 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_y_xz, shz_mat4x4_init_rotation_y_xz