//astronomy/io.github.cosinekitty.astronomy/searchTransit
fun searchTransit(body: Body, startTime: Time): TransitInfo
Searches for the first transit of Mercury or Venus after a given date.
Finds the first transit of Mercury or Venus after a specified date. A transit is when an inferior planet passes between the Sun and the Earth so that the silhouette of the planet is visible against the Sun in the background. To continue the search, pass the finish time in the returned object to nextTransit.
See transitsAfter for convenient iteration of consecutive transits.
body | The planet whose transit is to be found. Must be Body.Mercury or Body.Venus. |
startTime | The date and time for starting the search for a transit. |