Crate hipparchus
source ·Expand description
The crate provides a collection of utilities via re-exports on various hipparchus-*
crates.
License
All hipparchus-*
crates are licensed under either of
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT) at your option.
Modules
Macros
Structs
- To leverage y/x representation of an angle to acquire better precision & performance in regular situations.
- Struct for angle via combination of degrees, minutes and seconds (DMS).
- Ellipsoid parameters
- Latitude and longitude in degrees.
Enums
- ClimateZone is a region of the earth defined by its climate.
- Metrics for distributions
- Hemisphere is a half of the earth.
- The algorithm to use for computing the mean
- Meridian is a line of longitude.
- 4 directions on a 2D plane.
- Parallel is a line of latitude.
- Radius of the earth
- Enum for various mod policies
- Metrics for sampling
- Sign of a number
- Unit of angle measurement.
- Trait for simularity metrics between two vectors
Constants
- Obliguity of the ecliptic, the angle between the ecliptic and the celestial equator: 23.4392811° (or 23°26’21.412“), published by IERS-2022
Traits
- Trait for angle in degrees
- Trait for floating point types.
- ISO6709 format of latitude/longitude value. See also in https://en.wikipedia.org/wiki/ISO_6709.
- compute the Lp norm of a vector
- Compute the mean of a vector
- Ellipsoid Model
- Trait for signed & unsigned mod operation The default implementtion of % (or fmod) on nagative value and negative base are not well defined as standard. It is highly depends on programming language implementation. In Rust/C++, fmod (or %) are running in truncated mode. See in https://en.wikipedia.org/wiki/Modulo for details.
- The NMEA0183 format of latitude/longitude value
- Trait for square and cube calculation
- Trait for angle in radians
- Trait for floating point types with calculation with two
- Trait for types that have a sign