Files
astronomy/source/kotlin/doc/next-moon-node.md
Don Cross 5676049596 Kotlin: added iterator helper functions
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.
2022-05-06 21:52:27 -04:00

735 B

//astronomy/io.github.cosinekitty.astronomy/nextMoonNode

nextMoonNode

fun nextMoonNode(prevNode: NodeEventInfo): NodeEventInfo

Searches for the next time when the Moon's center crosses through the ecliptic plane.

Call searchMoonNode to find the first of a series of nodes. Then call nextMoonNode to find as many more consecutive nodes as desired.

See moonNodesAfter for convenient iteration of consecutive nodes.

Parameters

prevNode The previous node found from calling searchMoonNode or nextMoonNode.