1 #ifndef DataFormats_Math_CMS_Units_h 2 #define DataFormats_Math_CMS_Units_h 25 constexpr double operator"" _mm(
long double length) {
return length * 0.1; }
26 constexpr double operator"" _cm(
long double length) {
return length * 1.; }
27 constexpr double operator"" _m(
long double length) {
return length * 100.; }
28 constexpr double operator"" _cm3(
long double length) {
return length * 1._cm * 1._cm * 1._cm; }
29 constexpr double operator"" _m3(
long double length) {
return length * 1._m * 1._m * 1._m; }
30 constexpr double operator"" _mm(
unsigned long long int length) {
return length * 0.1; }
31 constexpr double operator"" _cm(
unsigned long long int length) {
return length * 1; }
constexpr long double convertDegToRad(NumType degrees)
constexpr NumType convertRadToDeg(NumType radians)
constexpr long double piRadians(M_PIl)