Skip to content

mp_units::utility::operator/

Division operator

Synopsis

Declared in <mp-units/utility/polar_vector.h>

[[nodiscard]] constexpr polar_vector operator/(polar_vector const& v, Rep const& scalar);

Note

This function is a hidden friend of polar_vector, declared only inside that class: it can be found only through argument-dependent lookup.

Return Value

A 2-D polar coordinate facade: a scalar-quantity radius r and an angle theta from the +x axis (counter-clockwise).

Note

The return value should not be discarded.

Parameters

NameDescription
vThe left operand
scalarThe right operand