[−][src]Function vsop87::vsop87b::venus
pub fn venus(jde: f64) -> SphericalCoordinates
Calculates VSOP87B solution for Venus.
This function calculates the VSOP87B solution (heliocentric ecliptic spherical coordinates for
the equinox J2000.0) for the planet Venus. The parameter needed is the Julian Day (JD) for
the given date. It returns the VSOP87B solution ina SphericalCoordinates
struct. Those values
are the spherical coordinates of the planet, with the Sun in the center and the ecliptic plane
as reference latitude = 0
.
Example
Given a date in JD, we can get the position of the planet Venus in the solar system using spherical coordinates. In this case, we calculate where Venus was in December 31st, 1899.
use vsop87::vsop87b; let coordinates = vsop87b::venus(2415020.0); assert!(coordinates.longitude() > 5.9993518123 && coordinates.longitude() < 5.9993518125); assert!(coordinates.latitude() > -0.0591709805 && coordinates.latitude() < -0.0591709803); assert!(coordinates.distance() > 0.7274715 && coordinates.distance() < 0.7274723);