sun_distance_from_body
Defined in: ephemeris.rs:147
fn sun_distance_from_body(body: &str, epoch: &[Epoch<Tdb>](../../structs/epoch/)) -> f64
Sun distance [km] from a given central body.
"earth"/"moon": delegates tosun_distance_km- Other known planets: computed from heliocentric orbital elements
- Unknown bodies: fallback to Earth-Sun distance