operator /=(XMVECTOR&, float) method
Divides an XMVECTOR
instance by a floating point value and returns a reference to the updated instance.
The operator /=
divides each component of the current instance of XMVECTOR Data Type by a specified floating point value, returning a reference to the updated current instance.
Note This operator is only available under C++.
Syntax
XMVECTOR& operator /=(
[ref] XMVECTOR &V,
float S
);
Parameters
V [ref]
Reference to current instance ofXMVECTOR
.S
Floating point divisor.
Return value
Reference to the updated current instance of XMVECTOR
.
Remarks
The following pseudocode demonstrates the operation of this operator:
XMVECTOR V;
V.x = V.x / S;
V.y = V.y / S;
V.z = V.z / S;
V.w = V.w / S;
Requirements
Namespace |
Use DirectX. |
Header |
DirectXMath.h |
See also
Reference