operator -(XMVECTOR) method
Computes the negation of an XMVECTOR
instance.
The operator -
takes an instance of XMVECTOR Data Type and returns a new instance of XMVECTOR
, with each component negated.
Note This operator is only available under C++.
c++
XMVECTOR operator -(
XMVECTOR V
);
- V
Vector whose components are to have their signs changed.
Vector whose components are the negation of V.
The following pseudocode demonstrates the operation of this operator:
XMVECTOR V;
XMVECTOR Vout;
Vout.x = - V.x;
Vout.y = - V.y;
Vout.z = - V.z;
Vout.w = - V.w;
Namespace |
Use DirectX. |
Header |
DirectXMath.h |
Reference