Function XMVectorNegate

Source
pub fn XMVectorNegate(V: FXMVECTOR) -> XMVECTOR
Expand description

Computes the negation of a vector.

§Parameters

V Vector to negate.

§Return value

Returns the negation of the vector.

§Remarks

The following pseudocode demonstrates the operation of the function:

XMVECTOR result;

result.x = -V.x;
result.y = -V.y;
result.z = -V.z;
result.w = -V.w;

return result;

§Reference

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