Skip to content

shz_xmtrx_rotate_y_xz

Markdown
SHZ_INLINE void shz_xmtrx_rotate_y_xz(float x, float z) SHZ_NOEXCEPT;

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

NameTypeDescription
xfloatX component of the unit direction.
zfloatZ component of the unit direction.

Nothing (void).

Equivalent to shz_xmtrx_rotate_y() for the angle whose sine is x and cosine is z.

  • (x, z) must be unit length.

shz_xmtrx_init_rotation_y_xz, shz_xmtrx_billboard_y