Crate astronomical_quantities

Source
Expand description

Predefined quantities (based on crate ‘quantities’) with units at astronomical scale.

For more information see crate quantities or its repository quantities.rs.

Structs§

Duration
Duration: ‘what a clock reads’
Length
The quantity of distance between two points in spacetime.
Mass
The quantity of matter in an astonomical body.
Speed
Magnitude of the change of an objects position per unit of time

Enums§

DurationUnit
Unit of quantity Duration.
LengthUnit
Unit of quantity Length.
MassUnit
Unit of quantity Mass.
SpeedUnit
Unit of quantity Speed.

Constants§

ASTRONOMICAL_UNIT
Reference unit of quantity Length (= 149597870700·m)
ASTRONOMICAL_UNITS_PER_DAY
Reference unit of quantity Speed
DAY
Reference unit of quantity Duration (= 24·h)
EARTH_MASS
10000/3329460487·M☉
EARTH_PERIOD
Earth’s Orbital Period (≈ 365.256363004·d)
GIGALIGHTYEAR
10⁹·ly
GIGAPARSEC
10⁹·pc
GREGORIAN_YEAR
365.2425·d
HOUR
60·min
JULIAN_YEAR
365.25·d
JUPITER_MASS
1000000/1047348644·M☉
KILOLIGHTYEAR
1000·ly
KILOMETER
1000·m
KILOMETER_PER_HOUR
km/h
KILOPARSEC
1000·pc
LIGHTSECOND
299792458·m
LIGHTYEAR
31557600·ls
LUNAR_MASS
1/27068510·M☉
MEGALIGHTYEAR
10⁶·ly
MEGAPARSEC
10⁶·pc
METER_PER_SECOND
SI reference unit
MINUTE
60·s
PARSEC
648000/π·au
SECOND
SI reference unit
SIDERAL_DAY
a·d/(a + d)
SOLAR_MASS
Reference unit of quantity Mass
SPEED_OF_LIGHT
ls/s