Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Subtracts a floating point value from the current instance of XMVECTOR, returning the result in the updated current instance.
The operator -=
subtracts a specified floating point value from each component of the current instance of XMVECTOR Data Type and returns a reference to the updated current instance.
XMVECTOR &XM_CALLCONV operator-=(
XMVECTOR & V1,
FXMVECTOR V2
) noexcept;
V1
Reference to current instance of XMVECTOR.
V2
XMVECTOR instance whose components are to be subtracted from the components of V1.
Reference to the updated current instance of XMVECTOR.
The following pseudocode demonstrates the operation of this operator:
XMVECTOR V1;
XMVECTOR V2;
V1.x = V1.x - V2.x;
V1.y = V1.y - V2.y;
V1.z = V1.z - V2.z;
V1.w = V1.w - V2.w;
Requirement | Value |
---|---|
Header | directxmath.h |