Skip to content

shz_xmtrx_init_rotation

Markdown
SHZ_INLINE void shz_xmtrx_init_rotation(float angle, float xAxis, float yAxis, float zAxis) SHZ_NOEXCEPT;

Initializes XMTRX to a 3D rotation matrix of angle radians about the vector with the given components.

NameTypeDescription
anglefloat
xAxisfloat
yAxisfloat
zAxisfloat

Nothing (void).

  • This routine works similarly to glRotatef() applied to an identitiy matrix. The given axis will automatically be normalized internally.

shz_xmtrx_init_rotation_dir