Files
astronomy/source/kotlin/doc/transits-after.md
2022-11-14 13:40:10 -05:00

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.