PhaseEvent

sealed interface PhaseEvent : LunarEvent

Event pertaining to the phase of the moon. These events represent LunarPhase.Primary phases as those occur at a specific instant in time. Waxing phases are where the moon is becoming more illuminated (trending towards a Full Moon, whereas Waning phases are where the moon is becoming less illuminated.

Note: Due to the simplified formulas used in Kastro, the returned time can have an error of several minutes.

Inheritors

Types

Link copied to clipboard
object Companion

Companion object to essentially create an alias to LunarPhase.Primary

Link copied to clipboard
class FirstQuarter(val time: Instant) : LunarEvent.PhaseEvent

Moment when half of the lunar disk is illuminated. This event also is the start of the intermediate phase LunarPhase.Intermediate.WaxingGibbous.

Link copied to clipboard
class FullMoon(val time: Instant) : LunarEvent.PhaseEvent

Moment when all of the lunar disk is illuminated. This event also is the start of the intermediate phase LunarPhase.Intermediate.WaningGibbous.

Link copied to clipboard
class LastQuarter(val time: Instant) : LunarEvent.PhaseEvent

Moment when half of the lunar disk is illuminated. This event also is the start of the intermediate phase LunarPhase.Intermediate.WaningCrescent.

Link copied to clipboard
class NewMoon(val time: Instant) : LunarEvent.PhaseEvent

Moment when the Sun and Moon are aligned and the lunar disc is not illuminated. This event also is the start of the intermediate phase LunarPhase.Intermediate.WaxingCrescent.

Properties

Link copied to clipboard
abstract override val time: Instant

Moment of the lunar event

Functions

Link copied to clipboard
open operator override fun compareTo(other: LunarEvent): Int