mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-18 12:28:20 -05:00
935 B
935 B
//astronomy/io.github.cosinekitty.astronomy/transitsAfter
transitsAfter
fun transitsAfter(body: Body, startTime: Time): Sequence<TransitInfo>
Enumerates a series of consecutive transits of Mercury or Venus.
This function enables iteration through a series of consecutive transits of Mercury or Venus that occur after a specified time.
This is a convenience wrapper around searchTransit and nextTransit.
Parameters
| body | The planet for which to enumerate transits. Must be Body.Mercury or Body.Venus. |
| startTime | The date and time for starting the search for a series of transits. |