[−][src]Function vsop87::vsop87d::uranus
pub fn uranus(jde: f64) -> SphericalCoordinates
Calculates VSOP87D solution for Uranus.
This function calculates the VSOP87D solution (heliocentric ecliptic spherical coordinates for
the equinox of the day) for the planet Uranus. The parameter needed is the Julian Day (JD)
for the given date. It returns the VSOP87D 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 Uranus in the solar system using spherical coordinates. In this case, we calculate where Uranus was in December 19th, 1199.
use vsop87::vsop87d; let coordinates = vsop87d::uranus(2159345.0); assert!(coordinates.longitude() > 1.9333853934 && coordinates.longitude() < 1.9333853936); assert!(coordinates.latitude() > 0.0088045917 && coordinates.latitude() < 0.0088045919); assert!(coordinates.distance() > 18.58414975 && coordinates.distance() < 18.58415051);