use-astronomical-coordinate 0.1.0

Primitive astronomical coordinate vocabulary for RustUse
Documentation
  • Coverage
  • 7.89%
    3 out of 38 items documented1 out of 18 items with examples
  • Size
  • Source code size: 13.57 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 872.46 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 4s Average build duration of successful builds.
  • all releases: 4s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • RustUse/use-astronomy
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CloudBranch

use-astronomical-coordinate

Primitive astronomical coordinate vocabulary.

use-astronomical-coordinate stores right ascension in degrees within 0.0..=360.0, stores declination within -90.0..=90.0, and models coordinate frames and systems used by astronomy software. It does not transform coordinate systems, apply precession or nutation, compute apparent positions, or render sky maps.

use use_astronomical_coordinate::{
    AstronomicalCoordinate, CoordinateFrame, CoordinateSystem, Declination, RightAscension,
};

let coordinate = AstronomicalCoordinate::new(
    RightAscension::from_degrees(279.234_734_79).unwrap(),
    Declination::new(38.783_688_96).unwrap(),
    CoordinateFrame::Equatorial,
    CoordinateSystem::ICRS,
);

assert_eq!(coordinate.frame(), &CoordinateFrame::Equatorial);
assert_eq!(coordinate.system(), &CoordinateSystem::ICRS);