Rosetta  2021.16
numeric::conversions Namespace Reference

Enumerations

enum  AngleUnit { RADIANS, DEGREES }

Functions

template<typename T >

template<typename T >
T radians (T const &angle, AngleUnit const unit)

template<typename T >

template<typename T >
Tto_radians (T &angle, AngleUnit const unit)

template<typename T >

template<typename T >
T degrees (T const &angle, AngleUnit const unit)
Degrees of any angle. More...

template<typename T >

template<typename T >
Tto_degrees (T &angle, AngleUnit const unit)
Degrees from any angle. More...

template<typename T >
T from_radians (T const &angle, AngleUnit const unit)

template<typename T >
T from_degrees (T const &angle, AngleUnit const unit)

Enumerator
DEGREES

Function Documentation

template<typename T >
 T numeric::conversions::degrees ( T const & radians )
inline
template<typename T >
 T numeric::conversions::degrees ( T const & angle, AngleUnit const unit )
inline

Degrees of any angle.

template<typename T >
 T numeric::conversions::from_degrees ( T const & angle, AngleUnit const unit )
inline

template<typename T >
 T numeric::conversions::from_radians ( T const & angle, AngleUnit const unit )
inline

template<typename T >
 T numeric::conversions::radians ( T const & degrees )
inline
template<typename T >
 T numeric::conversions::radians ( T const & angle, AngleUnit const unit )
inline

template<typename T >
 T& numeric::conversions::to_degrees ( T & radians )
inline

template<typename T >
 T& numeric::conversions::to_degrees ( T & angle, AngleUnit const unit )
inline

Degrees from any angle.

template<typename T >
 T& numeric::conversions::to_radians ( T & degrees )
inline