Skip to content

shz_mat4x4_rotate

Markdown
SHZ_INLINE void shz_mat4x4_rotate(shz_mat4x4_t* mat, float radians, float xAxis, float yAxis, float zAxis) SHZ_NOEXCEPT;

Multiplies and accumulates mat by the 3D rotation matrix formed by the given axis and angle.

NameTypeDescription
matshz_mat4x4_t *
radiansfloat
xAxisfloat
yAxisfloat
zAxisfloat

Nothing (void).

  • Equivalent to glRotatef().
  • 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.