astronomy

//astronomy/io.github.cosinekitty.astronomy/elongation

elongation

fun elongation(body: Body, time: Time): ElongationInfo

Determines visibility of a celestial body relative to the Sun, as seen from the Earth.

This function returns an ElongationInfo object, which provides the following information about the given celestial body at the given time:

Parameters

   
body The celestial body whose visibility is to be calculated.
time The date and time of the observation.