When documentation refers to a Body value, e.g. Body.Earth, link to its information page. I'm not sure this is super helpful, but it is an attempt to provide better linking. Added more explanatory text about the SSB and EMB values. I found that a blank line splits the extra text onto the dedicated pages for SSB and EMB, while leaving the "brief" description on the list of all Body enum values. That is nice.
1.2 KiB
//astronomy/io.github.cosinekitty.astronomy/jupiterMoons
jupiterMoons
fun jupiterMoons(time: Time): JupiterMoonsInfo
Calculates jovicentric positions and velocities of Jupiter's largest 4 moons.
Calculates position and velocity vectors for Jupiter's moons Io, Europa, Ganymede, and Callisto, at the given date and time. The vectors are jovicentric (relative to the center of Jupiter). Their orientation is the Earth's equatorial system at the J2000 epoch (EQJ). The position components are expressed in astronomical units (AU), and the velocity components are in AU/day.
To convert to heliocentric position vectors, call helioVector with Body.Jupiter to get Jupiter's heliocentric position, then add the jovicentric positions. Likewise, you can call geoVector to convert to geocentric positions; however, you will have to manually correct for light travel time from the Jupiter system to Earth to figure out what time to pass to jupiterMoons to get an accurate picture of how Jupiter and its moons look from Earth.