XMVector2TransformNormal

Transforms the 2D vector normal by the given matrix.

Syntax

XMVECTOR XMVector2TransformNormal(
         XMVECTOR V,
         CXMMATRIX M
)  

Parameters

V
Type: XMVECTOR 

2D normal vector.

M
Type: CXMMATRIX 

Transformation matrix.

Return value

Type: XMVECTOR 

Returns the transformed vector.

Remarks

XMVector2TransformNormal uses row 0 and 1 of the input transformation matrix for rotation and scaling. Rows 2 and 3 are ignored.

Requirements

Header: Declared in directxmath.h.