[−][src]Function vsop87::vsop87b::neptune
pub fn neptune(jde: f64) -> SphericalCoordinates
Calculates VSOP87B solution for Neptune.
This function calculates the VSOP87B solution (heliocentric ecliptic spherical coordinates for
the equinox J2000.0) for the planet Neptune. 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 Neptuine in the solar system using spherical coordinates. In this case, we calculate where Neptune was in December 19th, 1299.
use vsop87::vsop87b; let coordinates = vsop87b::neptune(2195870.0); assert!(coordinates.longitude() > 3.7635416327 && coordinates.longitude() < 3.7635416329); assert!(coordinates.latitude() > 0.0306777429 && coordinates.latitude() < 0.0306777431); assert!(coordinates.distance() > 30.3109111 && coordinates.distance() < 30.3109119);