operator- function (directxmath.h)
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++.
Syntax
XMVECTOR XM_CALLCONV operator-(
FXMVECTOR V
) noexcept;
Parameters
V
Vector whose components are to have their signs changed.
Return value
Vector whose components are the negation of V.
Remarks
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;
Requirements
Requirement | Value |
---|---|
Header | directxmath.h |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for