Transforms a 3D vector by a matrix.
XMVECTOR XMVector3Transform(
XMVECTOR V,
CXMMATRIX M
)
V
Type: XMVECTOR
3D vector.
M
Type: CXMMATRIX
Transformation matrix.
Type: XMVECTOR
Returns the transformed vector.
XMVector3Transform ignores the w component of the input vector, and uses a value of 1 instead. The w component of the returned vector may be non-homogeneous (!= 1.0).
Header: Declared in directxmath.h.