CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Namespaces | Functions | Variables
angle_units.h File Reference
#include <cmath>

Go to the source code of this file.

Namespaces

 angle_units
 
 angle_units::operators
 

Functions

template<class NumType >
std::enable_if
<!std::numeric_limits< NumType >
::is_integer, bool >::type 
angle_units::operators::almostEqual (NumType x, NumType y, int ulp)
 
template<class NumType >
constexpr NumType angle_units::operators::convertCm2ToMm2 (NumType centimeters)
 
template<class NumType >
constexpr NumType angle_units::operators::convertCmToMm (NumType centimeters)
 
template<class NumType >
constexpr double angle_units::operators::convertDegToRad (NumType degrees)
 
template<class NumType >
constexpr NumType angle_units::operators::convertGeVToKeV (NumType gev)
 
template<class NumType >
constexpr NumType angle_units::operators::convertGeVToMeV (NumType gev)
 
template<class NumType >
constexpr NumType angle_units::operators::convertMeVToGeV (NumType mev)
 
template<class NumType >
constexpr NumType angle_units::operators::convertMm3ToM3 (NumType mm3)
 
template<class NumType >
constexpr NumType angle_units::operators::convertMmToCm (NumType millimeters)
 
template<class NumType >
constexpr NumType angle_units::operators::convertRadToDeg (NumType radians)
 
constexpr double angle_units::operators::operator""_deg (long double deg)
 
constexpr double angle_units::operators::operator""_deg (unsigned long long int deg)
 
constexpr double angle_units::operators::operator""_pi (long double x)
 
constexpr double angle_units::operators::operator""_pi (unsigned long long int x)
 
constexpr double angle_units::operators::operator""_rad (long double rad)
 
constexpr double angle_units::piRadians (M_PI)
 

Variables

constexpr double angle_units::degPerRad = 180. / piRadians