XMVectorNegate

Computes the negation of a vector.

Syntax

XMVECTOR XMVectorNegate(
         XMVECTOR V
)  

Parameters

V
Type: XMVECTOR 

Vector to negate.

Return value

Type: XMVECTOR 

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;  

Requirements

Header: Declared in directxmath.h.