Skip to content

mp_units::utility::operator*

Multiplication operator

Synopsis

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

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

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
scalarThe left operand
vThe right operand