1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
//! Canonical physical and unit constants shared by the core crates.
//!
//! Values with different standards or parity sources are intentionally named
//! distinctly in [`models`] or [`astro`] instead of being silently unified.
/// Unit-conversion constants.
/// Time-scale and Julian-date constants.
/// WGS84 Earth constants.
/// Universal physical constants.
/// Astronomical constants.
/// Model-specific constants that intentionally differ from WGS84.
/// Canonical Earth gravity-model constants: the (mu, Re, J2) triple in km units,
/// used together by the two-body + J2 force model. Geodetic code instead uses the
/// WGS84 ellipsoid parameters (earth::WGS84_A_KM with WGS84_E2/WGS84_F); RE_EARTH
/// and WGS84_A_KM share a numeric value but name distinct concepts (gravity
/// reference radius vs ellipsoid semi-major axis).
pub const MU_EARTH: f64 = GM_EARTH_KM3_S2;
/// Earth reference equatorial radius for the gravity model (km).
pub const RE_EARTH: f64 = WGS84_A_KM;
/// Earth J2 zonal harmonic for the gravity model.
pub const J2_EARTH: f64 = J2_EARTH;