[][src]Function directx_math::XMVector3TransformCoord

pub fn XMVector3TransformCoord(V: FXMVECTOR, M: FXMMATRIX) -> FXMVECTOR

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

Parameters

V 3D vector.

M Transformation matrix.

Return value

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.

Reference

https://docs.microsoft.com/en-us/windows/win32/api/directxmath/nf-directxmath-XMVector3TransformCoord