mirror of
https://github.com/cosinekitty/astronomy.git
synced 2026-01-22 22:40:50 -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
995 B
Markdown
22 lines
995 B
Markdown
//[astronomy](../../index.md)/[io.github.cosinekitty.astronomy](index.md)/[nextLunarEclipse](next-lunar-eclipse.md)
|
|
|
|
# nextLunarEclipse
|
|
|
|
fun [nextLunarEclipse](next-lunar-eclipse.md)(prevEclipseTime: [Time](-time/index.md)): [LunarEclipseInfo](-lunar-eclipse-info/index.md)
|
|
|
|
Searches for the next lunar eclipse in a series.
|
|
|
|
After using [searchLunarEclipse](search-lunar-eclipse.md) to find the first lunar eclipse in a series, you can call this function to find the next consecutive lunar eclipse. Pass in the center value from the [LunarEclipseInfo](-lunar-eclipse-info/index.md) returned by the previous call to searchLunarEclipse or nextLunarEclipse to find the next lunar eclipse.
|
|
|
|
See [lunarEclipsesAfter](lunar-eclipses-after.md) for convenient iteration of consecutive lunar eclipses.
|
|
|
|
#### Return
|
|
|
|
Information about the next lunar eclipse in a series.
|
|
|
|
## Parameters
|
|
|
|
| | |
|
|
|---|---|
|
|
| prevEclipseTime | A time near a full moon. Lunar eclipse search will start at the next full moon. |
|