Builds a matrix that rotates around an arbitrary axis.
XMMATRIX XMMatrixRotationAxis(
XMVECTOR Axis,
float Angle
)
Axis
Type: XMVECTOR
Vector describing the axis of rotation.
Angle
Type: float
Angle of rotation in radians. Angles are measured clockwise when looking along the rotation axis toward the origin.
Type: XMMATRIX
Returns the rotation matrix.
If Axis is a normalized vector, it is faster to use the XMMatrixRotationNormal function to build this type of matrix.
Header: Declared in directxmath.h.