Helios++
Helios software for LiDAR simulations
MathConstants.h
1 #pragma once
2 
3 #define _USE_MATH_DEFINES
4 #include <math.h>
5 
11 const double PI_HALF = M_PI/2.0;
12 
18 const double PI_QUARTER = M_PI/4.0;
24 const double PI_EIGHTH = M_PI/8.0;
25 
31 const double PI_3_HALF = PI_HALF*3.0;
32 
38 const double PI_2 = M_PI*2.0;
39 
45 const double PI_4 = M_PI*4.0;
51 const double PI_SQUARED = M_PI*M_PI;
52 
58 const double PI_SQUARED_2 = 2*M_PI*M_PI;
59 
65 const double _180_OVER_PI = 180.0/M_PI;
66 
72 const double PI_OVER_180 = M_PI/180.0;
73 
77 const double ALMOST_MINUS_1 = -0.9999999999;
81 const double ALMOST_PLUS_1 = 0.9999999999;
82 
89 const double SQRT2 = 1.4142135623730951;
90 
91 
95 const double SPEEDofLIGHT_mPerSec = 299792458;
96 
100 const double SPEEDofLIGHT_mPerNanosec = 0.299792458;
101 
105 const double SPEEDofLIGHT_mPerPicosec = 0.000299792458;