mp_units::utility::spherical_vector::spherical_vector¶
Construct from spherical_vector
Synopsis¶
Declared in <mp-units/utility/spherical_vector.h>
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);
Return Value¶
Note
The return value should not be discarded.
Parameters¶
| Name | Description |
|---|---|
| other | The object to copy construct from |