]> git.localhorst.tv Git - blobs.git/blob - src/const.hpp
fix return value of tsr get double
[blobs.git] / src / const.hpp
1 #ifndef BLOBS_CONST_HPP_
2 #define BLOBS_CONST_HPP_
3
4
5 namespace blobs {
6
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;
12
13 constexpr double PI_inv = 1.0 / PI;
14 constexpr double PI_0p5_inv = 1.0 / PI_0p5;
15
16 constexpr double G = 6.674e-11; // m³kg¯¹s¯²
17
18 }
19
20 #endif