Function vsop87::vsop87e::mercury
[−]
[src]
pub fn mercury(jde: f64) -> (f64, f64, f64)
Calculates VSOP87E solution for Mercury
This function calculates the VSOP87E solution (barycentric ecliptic rectangular coordinates for
the equinox J2000.0) for the planet Mercury. The parameter needed is the Julian Day Efemeris
(JDE) for the given date. It returns, in order, a tuple with the values x, y, z of the
VSOP87E solution. Those values are the rectangular coordinates of the planet, in AU, with the
barycenter of the solar system in the center and the ecliptic plane as reference z = 0
.
Examples
use vsop87::vsop87e; let (x, y, z) = vsop87e::mercury(2415020.0); assert!(x > -0.3865370328 && x < -0.3865370326); assert!(y > -0.1438666202 && y < -0.1438666200); assert!(z > 0.0235142 && z < 0.0235182);