mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-04-03 06:15:29 -04:00
This function is a generalization of Astronomy_LongitudeFromSun, which it replaces. It calculates the relative ecliptic longitude of one body with respect to another body, as seen from the Earth. After implementing the same function in C#, JavaScript, and Python, I will come back and create a generalized search algorithm to find the next time two bodies are at a given apparent relative longitude. Even though this is a generalization of SearchRelativeLongitude, I will have to figure out a more general way of tuning the search.