Skip to content

heliocentric_position_ecliptic

Defined in: mod.rs:203

fn heliocentric_position_ecliptic(body: &str, epoch: &Epoch) -> [Option<nalgebra::Vector3<f64>>](https://doc.rust-lang.org/std/option/enum.Option.html)

Compute heliocentric position of a planet in the ecliptic frame [km].

Returns None if the body is not a recognized planet. Accuracy: ~1 arcminute for inner planets, sufficient for sun-direction lighting.

Meeus ephemerides take a dynamical time argument (TDB). The public signature accepts &Epoch<Utc> for backward compatibility; UTC is converted to TDB internally.