Function vsop87::vsop87e::venus [] [src]

pub fn venus(jde: f64) -> (f64, f64, f64)

Calculates VSOP87E solution for Venus

This function calculates the VSOP87E solution (barycentric ecliptic rectangular coordinates for the equinox J2000.0) for the planet Venus. 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::venus(2378495.0);

assert!(x > -0.5948645228 && x < -0.5948645226);
assert!(y > 0.3900421674 && y < 0.3900421676);
assert!(z > 0.0397542 && z < 0.0397582);