View Source Astrex.Astro.SolarSystem (Astrex v0.3.4)
This module exports only one function to retrieve the current equatorial coordinates of the 9 planets (including Pluto) and of the Moon (via the Astrex.Astro.Moon module)
The coordinates are returned in Degrees (declination) and Hours (right ascension)
Algoritm and original javascript source code from https://cdpn.io/lulunac27/fullpage/NRoyxE - planets
Link to this section Summary
Functions
Receives an atom (requested object) and a datetime returns the coordinates (RA/DEC) of the requested object
Link to this section Functions
@spec where_is(Astrex.Types.solar_system(), %NaiveDateTime{ calendar: term(), day: term(), hour: term(), microsecond: term(), minute: term(), month: term(), second: term(), year: term() }) :: Astrex.Types.equatorial()
Receives an atom (requested object) and a datetime returns the coordinates (RA/DEC) of the requested object
valid atoms: :mercury :venus :moon :mars :jupiter :saturn :uranus :neptune :pluto