operator - operators

Subtraction and negation operators

Overload list

Operator Description
XMVECTOR::operator - (XMVECTOR) 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++.
XMVECTOR::operator - (XMVECTOR,XMVECTOR) Subtracts one instance of XMVECTOR from a second instance, returning the result in a new instance of XMVECTOR.
The operator - subtracts each component of an instance of XMVECTOR Data Type from each component of another instance of XMVECTOR, returning a new XMVECTOR instance containing the result.
Note: This operator is only available under C++.

See also

XMVECTOR Operators

Reference

XMVECTOR Data Type