[][src]Module vsop87::vsop87a

VSOP87A algorithm: Heliocentric ecliptic rectangular coordinates for the equinox J2000.0.

This module contains the functions to calculate heliocentric ecliptic rectangular coordinates for the equinox J2000.0 for the planets in the solar system. The most useful when converting to geocentric positions and later plot the position on a star chart.

Example

Given a date in JD, we can get the position of the planet Mercury in the solar system using rectangular coordinates. In this case, we calculate where Mercury was in December 31st, 1899.

use vsop87::vsop87a;

let coordinates = vsop87a::mercury(2415020.0);

assert!(coordinates.x > -0.3897246932 && coordinates.x < -0.3897246930);
assert!(coordinates.y > -0.1502242200 && coordinates.y < -0.1502242198);
assert!(coordinates.z > 0.023618 && coordinates.z < 0.023622);

Functions

earth

Calculates VSOP87A solution for Earth.

earth_moon

Calculates VSOP87A solution for Earth - Moon barycenter.

jupiter

Calculates VSOP87A solution for Jupiter.

mars

Calculates VSOP87A solution for Mars.

mercury

Calculates VSOP87A solution for Mercury.

neptune

Calculates VSOP87A solution for Neptune

saturn

Calculates VSOP87A solution for Saturn.

uranus

Calculates VSOP87A solution for Uranus.

venus

Calculates VSOP87A solution for Venus.