Computes the negation of a vector.
XMVECTOR XMVectorNegate(
XMVECTOR V
)
V
Type: XMVECTOR
Vector to negate.
Type: XMVECTOR
Returns the negation of the vector.
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;
Header: Declared in directxmath.h.