Module vsop87::vsop87b

source ·
Expand description

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

  • Calculates VSOP87B solution for Earth.
  • Calculates VSOP87B solution for Jupiter.
  • Calculates VSOP87B solution for Mars.
  • Calculates VSOP87B solution for Mercury.
  • Calculates VSOP87B solution for Neptune.
  • Calculates VSOP87B solution for Saturn.
  • Calculates VSOP87B solution for Uranus.
  • Calculates VSOP87B solution for Venus.