CMS 3D CMS Logo

Pi.h
Go to the documentation of this file.
1 #ifndef GeometryVector_Geom_Pi_h
2 #define GeometryVector_Geom_Pi_h
3 
29 namespace Geom {
30 
31  inline constexpr double pi() {return 3.141592653589793238;}
32  inline constexpr double twoPi() {return 2. *3.141592653589793238;}
33  inline constexpr double halfPi() {return 0.5*3.141592653589793238;}
34 
35  inline constexpr float fpi() {return 3.141592653589793238f;}
36  inline constexpr float ftwoPi() {return 2.f *3.141592653589793238f;}
37  inline constexpr float fhalfPi() {return 0.5f*3.141592653589793238f;}
38 
39 
40 }
41 
42 #endif
constexpr float ftwoPi()
Definition: Pi.h:36
constexpr double halfPi()
Definition: Pi.h:33
constexpr float fpi()
Definition: Pi.h:35
#define constexpr
constexpr float fhalfPi()
Definition: Pi.h:37
constexpr double pi()
Definition: Pi.h:31
constexpr double twoPi()
Definition: Pi.h:32