XMVector3InverseRotate

Rotates a 3D vector using the inverse of a quaternion.

Syntax

XMVECTOR XMVector3InverseRotate(
         XMVECTOR V,
         XMVECTOR RotationQuaternion
)  

Parameters

V
Type: XMVECTOR 

3D vector to rotate.

RotationQuaternion
Type: XMVECTOR 

Quaternion that describes the inverse of the rotation to apply to the vector.

Return value

Type: XMVECTOR 

Returns the rotated 3D vector.

Requirements

Header: Declared in directxmath.h.