31
31
namespace steppable ::constants
32
32
{
33
33
// / @brief 100 digits of pi.
34
- extern const std::string_view PI;
34
+ constexpr const std::string_view PI =
35
+ " 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679" ;
35
36
36
37
// / @brief Pi multiplied by 2.
37
38
// Generated using Python:
@@ -43,7 +44,7 @@ namespace steppable::constants
43
44
// 5 | 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
44
45
// 6 | ) * Decimal(2)
45
46
// -------------------------------------------------------
46
- extern const std::string_view TWO_PI;
47
+ constexpr const std::string_view TWO_PI = " 6.283185307179586231995926937088370323181152343750 " ;
47
48
48
49
// / @brief Pi divided by 2.
49
50
// Generated using Python:
@@ -55,7 +56,8 @@ namespace steppable::constants
55
56
// 5 | 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
56
57
// 6 | ) / Decimal(2)
57
58
// -------------------------------------------------------
58
- extern const std::string_view PI_OVER_2;
59
+ constexpr const std::string_view PI_OVER_2 =
60
+ " 1.570796326794896619231321691639751442098584699687552910487472296153908203143104499314017412835292542" ;
59
61
60
62
// / @brief Pi divided by 180 (to convert degrees to radians), correct to 100 decimal places.
61
63
// Generated using Python:
@@ -67,7 +69,8 @@ namespace steppable::constants
67
69
// 5 | 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
68
70
// 6 | ) / Decimal(180)
69
71
// -------------------------------------------------------
70
- extern const std::string_view PI_OVER_180;
72
+ constexpr const std::string_view PI_OVER_180 =
73
+ " 0.01745329251994329508887757482524547311994764539930555555555555555555555555555555555555555555555555556" ;
71
74
72
75
// / @brief Pi divided by 200 (to convert grads to radians), correct to 100 decimal places.
73
76
// Generated using Python:
@@ -79,7 +82,8 @@ namespace steppable::constants
79
82
// 5 | 3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679
80
83
// 6 | ) / Decimal(200)
81
84
// -------------------------------------------------------
82
- extern const std::string_view PI_OVER_200;
85
+ constexpr const std::string_view PI_OVER_200 =
86
+ " 0.01570796326794896619231321691639716312084074699687552942986246296153903203140449499314017412671058534" ;
83
87
84
- extern const std::string_view E;
88
+ constexpr const std::string_view E = " 2.718281828459045090795598298427648842334747314453125 " ;
85
89
} // namespace steppable::constants
0 commit comments