gistools/space/planets/
earth.rs

1/// Earth's radius in meters
2pub const EARTH_RADIUS: f64 = 6_371_008.8;
3/// Earth's radius in kilo-meters
4pub const EARTH_RADIUS_KM: f64 = 6_371.008_8;
5/// Earth's equatorial radius in meters
6pub const EARTH_RADIUS_EQUATORIAL: f64 = 6_378_137.0;
7/// Earth's polar radius in meters
8pub const EARTH_RADIUS_POLAR: f64 = 6_356_752.3;
9/// The average circumference of the world in meters
10pub const EARTH_CIRCUMFERENCE: f64 = 2.0 * core::f64::consts::PI * EARTH_RADIUS;
11/// Returns the altitude of the lowest known point on Earth in meters. The lowest known
12/// point on Earth is the Challenger Deep with an altitude of 10898 meters
13/// below the surface of the spherical earth.
14pub const EARTH_LOWEST_ALTITUDE: f64 = -10_898.0;
15/// Returns the altitude of the highest known point on Earth in meters. The highest
16/// known point on Earth is Mount Everest with an altitude of 8846 meters
17/// above the surface of the spherical earth.
18pub const EARTH_HIGHEST_ALTITUDE: f64 = 8_846.0;