[][src]Function vsop87::venus

pub fn venus(jde: f64) -> VSOP87Elements

Calculates VSOP87 solution for Venus.

This function calculates the VSOP87 solution (heliocentric ecliptic orbital elements for the equinox J2000.0) for the planet Venus. The parameter needed is the Julian Day (JD) for the given date. It returns the VSOP87Elements of the VSOP87 solution.

Example

Given a date in JD, we can get the orbit of the planet Venus. In this case, we calculate the orbit of Venus in January 1st, 2000.

let vsop87_elts = vsop87::venus(2451545.0);

assert!(vsop87_elts.a > 0.7233269303 && vsop87_elts.a < 0.7233269305);
assert!(vsop87_elts.l > 3.1761350909 && vsop87_elts.l < 3.1761350911);
assert!(vsop87_elts.k > -0.0045086078 && vsop87_elts.k < -0.0045086076);
assert!(vsop87_elts.h > 0.0050312181 && vsop87_elts.h < 0.0050312183);
assert!(vsop87_elts.q > 0.0068248057 && vsop87_elts.q < 0.0068248059);
assert!(vsop87_elts.p > 0.02882177 && vsop87_elts.p < 0.02882253);

It can then be converted into keplerian elements:

use vsop87::{KeplerianElements, VSOP87Elements};

let k_elements: KeplerianElements = vsop87_elts.into();
let convert_back = VSOP87Elements::from(k_elements);