XMMatrixRotationNormal

Builds a matrix that rotates around an arbitrary normal vector.

Syntax

XMMATRIX XMMatrixRotationNormal(
         XMVECTOR NormalAxis,
         float Angle
)  

Parameters

NormalAxis
Type: XMVECTOR 

Normal 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.

Return value

Type: XMMATRIX 

Returns the rotation matrix.

Requirements

Header: Declared in directxmath.h.