Module vsop87::vsop87b [] [src]

VSOP87B algorithm: Heliocentric ecliptic spherical coordinates for the equinox J2000.0.

This module calculates heliocentric ecliptic spherical coordinates for the equinox J2000.0 for the planets in the solar system.

Example

Given a date in JD, we can get the position of the planet Earth in the solar system using spherical coordinates. In this case, we calculate where the Earth was in December 30th, 1799.

use vsop87::vsop87b;

let coordinates = vsop87b::earth(2378495.0);

assert!(coordinates.longitude() > 1.7750058557 && coordinates.longitude() < 1.7750058559);
assert!(coordinates.latitude() > 0.0004381094 && coordinates.latitude() < 0.0004381096);
assert!(coordinates.distance() > 0.9832270 && coordinates.distance() < 0.9832278);

Functions

earth

Calculates VSOP87B solution for Earth.

jupiter

Calculates VSOP87B solution for Jupiter.

mars

Calculates VSOP87B solution for Mars.

mercury

Calculates VSOP87B solution for Mercury.

neptune

Calculates VSOP87B solution for Neptune.

saturn

Calculates VSOP87B solution for Saturn.

uranus

Calculates VSOP87B solution for Uranus.

venus

Calculates VSOP87B solution for Venus.