Skip to content

mp_units::utility::operator*

Multiplication operator

Synopsis

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

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

Return Value

A 3-D spherical coordinate facade (ISO physics convention): a scalar-quantity radius r, inclination theta from +z in [0, pi], and azimuth phi from +x in [-pi, pi].

Note

The return value should not be discarded.

Parameters

NameDescription
vThe left operand
scalarThe right operand