Skip to content

mp_units::utility::spherical_vector::spherical_vector

Constructors

Synopses

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

Default constructor

[[nodiscard]] spherical_vector() = default;

» more...

Construct from spherical_vector

template<auto RU, auto AU, typename Rep2>
  requires std::constructible_from<Rep, Rep2> && requires(const quantity<RU, Rep2>& r, const quantity<AU, Rep2>& a) {
    r.numerical_value_in(get_unit(RadiusRef));
    a.numerical_value_in(AngleUnit);
  }
[[nodiscard]] constexpr explicit(!detail::ImplicitlyConvertibleScalar<Rep2, Rep>)
  spherical_vector(spherical_vector<RU, AU, Rep2> const& other);

» more...

Construct from quantity

template<auto VR,
         /* implementation-defined */ V>
  requires requires(const quantity<VR, V>& v) { v.numerical_value_in(get_unit(RadiusRef)); }
[[nodiscard]] constexpr explicit spherical_vector(quantity<VR, V> const& v);

» more...

[[nodiscard]] constexpr spherical_vector(radius_type r, angle_type theta, angle_type phi);

» more...

Return Value

Note

The return value should not be discarded.