Transforms a 3D vector by a given matrix, projecting the result back into w = 1.
XMVECTOR XMVector3TransformCoord(
XMVECTOR V,
CXMMATRIX M
)
V
Type: XMVECTOR
3D vector.
M
Type: CXMMATRIX
Transformation matrix.
Type: XMVECTOR
Returns the transformed vector.
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.
Header: Declared in directxmath.h.