XMVector3Rotate

Rotates a 3D vector using a quaternion.

Syntax

XMVECTOR XMVector3Rotate(
         XMVECTOR V,
         XMVECTOR RotationQuaternion
)  

Parameters

V
Type: XMVECTOR 

3D vector to rotate.

RotationQuaternion
Type: XMVECTOR 

Quaternion that describes the rotation to apply to the vector.

Return value

Type: XMVECTOR 

Returns the rotated 3D vector.

Requirements

Header: Declared in directxmath.h.