Skip to content

mp_units::utility::operator*

Multiplication operator

Synopsis

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

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

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