XMVector3TransformNormal

Transforms the 3D vector normal by the given matrix.

Syntax

XMVECTOR XMVector3TransformNormal(
         XMVECTOR V,
         CXMMATRIX M
)  

Parameters

V
Type: XMVECTOR 

3D normal vector.

M
Type: CXMMATRIX 

Transformation matrix.

Return value

Type: XMVECTOR 

Returns the transformed vector.

Remarks

XMVector3TransformNormal performs transformations using the input matrix rows 0, 1, and 2 for rotation and scaling, and ignores row 3.

Requirements

Header: Declared in directxmath.h.