Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 935 Bytes

transits-after.md

File metadata and controls

18 lines (11 loc) · 935 Bytes

//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.