Skip to content

shz_xmtrx_rotate_z_xy

Markdown
SHZ_INLINE void shz_xmtrx_rotate_z_xy(float x, float y) SHZ_NOEXCEPT;

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

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

Nothing (void).

Equivalent to shz_xmtrx_rotate_z() for the angle whose sine is y and cosine is x.

  • (x, y) must be unit length.

shz_xmtrx_init_rotation_z_xy, shz_xmtrx_billboard_z