]> Shamusworld >> Repos - guemap/blob - src/mathconstants.h
Initial commit of GUEmap v3.
[guemap] / src / mathconstants.h
1 // Mathematical Constants used by GUEmap
2 //
3 // Part of the GUEmap Project
4 // (C) 2019 Underground Software
5 // See the README and GPLv2 files for licensing and warranty information
6 //
7 // NOTE: Since this has no code associated with it, there is no corresponding
8 //       .cpp file.
9 //
10
11 #define TAU                6.28318530717958647692528676655
12 #define TAU_1QTR           (TAU * 0.25)
13 #define TAU_2QTR           (TAU * 0.50)
14 #define TAU_3QTR           (TAU * 0.75)
15 #define RADIANS_TO_DEGREES (360.0 / TAU)
16 #define DEGREES_TO_RADIANS (TAU / 360.0)
17
18 // Convenience definitions
19 #define HALF_TAU           (TAU_2QTR)
20 #define QTR_TAU            (TAU_1QTR)
21 #define THREE_QTR_TAU      (TAU_3QTR)
22