mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-06 06:27:57 -05:00
Added the following iterator functions that wrap
search/next pairs of functions:
globalSolarEclipsesAfter
localSolarEclipsesAfter
lunarApsidesAfter
lunarEclipsesAfter
moonNodesAfter
moonQuartersAfter
planetApsidesAfter
transitsAfter
I updated the following Kotlin demos:
MoonPhase.kt ==> moonQuartersAfter
LunarEclipse.kt ==> lunarEclipsesAfter
However, I have not yet figured out how to use these
functions in the corresponding Java demos.
22 lines
1.1 KiB
Markdown
22 lines
1.1 KiB
Markdown
//[astronomy](../../index.md)/[io.github.cosinekitty.astronomy](index.md)/[nextGlobalSolarEclipse](next-global-solar-eclipse.md)
|
|
|
|
# nextGlobalSolarEclipse
|
|
|
|
fun [nextGlobalSolarEclipse](next-global-solar-eclipse.md)(prevEclipseTime: [Time](-time/index.md)): [GlobalSolarEclipseInfo](-global-solar-eclipse-info/index.md)
|
|
|
|
Searches for the next global solar eclipse in a series.
|
|
|
|
After using [searchGlobalSolarEclipse](search-global-solar-eclipse.md) to find the first solar eclipse in a series, you can call this function to find the next consecutive solar eclipse. Pass in the peak value from the [GlobalSolarEclipseInfo](-global-solar-eclipse-info/index.md) returned by the previous call to searchGlobalSolarEclipse or nextGlobalSolarEclipse to find the next solar eclipse.
|
|
|
|
See [globalSolarEclipsesAfter](global-solar-eclipses-after.md) for convenient iteration of consecutive eclipses.
|
|
|
|
#### Return
|
|
|
|
Information about the next consecutive solar eclipse.
|
|
|
|
## Parameters
|
|
|
|
| | |
|
|
|---|---|
|
|
| prevEclipseTime | A date and time near a new moon. Solar eclipse search will start at the next new moon. |
|