Skip to content

shz_mat4x4_init_rotation_z_xy

Markdown
SHZ_INLINE void shz_mat4x4_init_rotation_z_xy(shz_mat4x4_t* mat, float x, float y) SHZ_NOEXCEPT;

Initializes the given matrix to the rotation about the Z axis that turns local +X toward the unit direction (x, y, 0).

NameTypeDescription
matshz_mat4x4_t *The matrix to initialize.
xfloatX component of the unit direction.
yfloatY component of the unit direction.

Nothing (void).

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