[−][src]Trait nyx_space::celestia::CelestialBody
CelestialBody
represents a celestial body.
Note that all planets are defined as types. This leverages higher speed of execution via monomorphism.
The CelestialBody
s provided in nyx use the same values as those in GMAT 2016a.
NOTE: There is no Pluto defined in nyx because it isn't a planet: it's a collection of three (four?) small rocks orbiting each other.
Required methods
fn gm() -> f64
Returns the gravitional parameter of the given body. Unit: km3/s2
fn eq_radius() -> f64
Returns the equatorial radius of this celestial object.
fn flattening() -> f64
Returns the flattening of this celestial object.