use-earth-constants 0.1.0

Reusable Earth and WGS84 constants for RustUse
Documentation
  • Coverage
  • 100%
    10 out of 10 items documented1 out of 1 items with examples
  • Size
  • Source code size: 4.34 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 275.5 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 22s Average build duration of successful builds.
  • all releases: 22s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-earth-constants

Reusable Earth, WGS84, geodesy-adjacent, and standard-environment constants for RustUse.

This crate provides plain exported constants for Earth size, Earth mass, standard gravity, standard sea-level pressure, and WGS84 reference ellipsoid values.

It does not include geodesy algorithms, coordinate transforms, or unit conversion logic.

Usage

use use_earth_constants::{EARTH_RADIUS_MEAN, STANDARD_GRAVITY, WGS84_A};

assert!(EARTH_RADIUS_MEAN > 0.0);
assert!(STANDARD_GRAVITY > 9.8);
assert_eq!(WGS84_A, 6_378_137.0);