operator/ function (directxmath.h)
Divides one instance of XMVECTOR by a second instance, returning the result in a third instance.
The operator /
divides each component of an instance of XMVECTOR Data Type by the corresponding component in a second instance of XMVECTOR, returning a new XMVECTOR instance containing the result.
Syntax
XMVECTOR XM_CALLCONV operator/(
FXMVECTOR V1,
FXMVECTOR V2
) noexcept;
Parameters
V1
XMVECTOR instance whose components are the dividends of the division operation.
V2
XMVECTOR instance whose components are the divisors of the division operation.
Return value
XMVECTOR instance whose components are the quotient of the division of each component of V1 by each corresponding component of V2.
Remarks
The following pseudocode demonstrates the operation of this operator:
XMVECTOR V1;
XMVECTOR V2;
XMVECTOR Vout;
Vout.x = V1.x / V2.x;
Vout.y = V1.y / V2.y;
Vout.z = V1.z / V2.z;
Vout.w = V1.w / V2.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