Function directx_math::XMMatrixRotationAxis[][src]

pub fn XMMatrixRotationAxis(Axis: FXMVECTOR, Angle: f32) -> XMMATRIX

Builds a matrix that rotates around an arbitrary axis.

Parameters

Axis Vector describing the axis of rotation.

Angle Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.

Return value

Returns the rotation matrix.

Remarks

If Axis is a normalized vector, it is faster to use the XMMatrixRotationNormal function to build this type of matrix.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMMatrixRotationAxis