operator/= (divide)

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/=(
  XMVECTOR & V,
  float      S
) noexcept;

Parameters

V

Reference to current instance of XMVECTOR.

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

Requirement Value
Header directxmath.h

See also

XMVECTOR Data Type