XMVector3TransformCoord

Transforms a 3D vector by a given matrix, projecting the result back into w = 1.

Syntax

XMVECTOR XMVector3TransformCoord(
         XMVECTOR V,
         CXMMATRIX M
)  

Parameters

V
Type: XMVECTOR 

3D vector.

M
Type: CXMMATRIX 

Transformation matrix.

Return value

Type: XMVECTOR 

Returns the transformed vector.

Remarks

XMVector3TransformCoord ignores the w component of the input vector, and uses a value of 1.0 instead. The w component of the returned vector will always be 1.0.

Requirements

Header: Declared in directxmath.h.