1 #ifndef BLOBS_MATH_CONST_HPP_
2 #define BLOBS_MATH_CONST_HPP_
7 constexpr double PI = 3.141592653589793238462643383279502884;
8 constexpr double PI_0p25 = PI * 0.25;
9 constexpr double PI_0p5 = PI * 0.5;
10 constexpr double PI_1p5 = PI * 1.5;
11 constexpr double PI_2p0 = PI * 2.0;
13 constexpr double PI_inv = 1.0 / PI;
14 constexpr double PI_0p5_inv = 1.0 / PI_0p5;
16 /// gravitational constant
17 constexpr double G = 6.674e-11; // m³kg¯¹s¯²