[−][src]Function vsop87::vsop87b::uranus
pub fn uranus(jde: f64) -> SphericalCoordinates
Calculates VSOP87B solution for Uranus.
This function calculates the VSOP87B solution (heliocentric ecliptic spherical coordinates for
the equinox J2000.0) for the planet Uranus. 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 Uranus in the solar system using spherical coordinates. In this case, we calculate where Uranus was in December 19th, 1399.
use vsop87::vsop87b; let coordinates = vsop87b::uranus(2232395.0); assert!(coordinates.longitude() > 4.6715450661 && coordinates.longitude() < 4.6715450663); assert!(coordinates.latitude() > -0.0033027750 && coordinates.latitude() < -0.0033027748); assert!(coordinates.distance() > 19.2694309 && coordinates.distance() < 19.2694317);