Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 2.13 KB

index.md

File metadata and controls

28 lines (18 loc) · 2.13 KB

//astronomy/io.github.cosinekitty.astronomy/ApsisInfo

ApsisInfo

class ApsisInfo(time: Time, kind: ApsisKind, distanceAu: Double)

An apsis event: pericenter (closest approach) or apocenter (farthest distance).

For the Moon orbiting the Earth, or a planet orbiting the Sun, an apsis is an event where the orbiting body reaches its closest or farthest point from the primary body. The closest approach is called pericenter and the farthest point is apocenter.

More specific terminology is common for particular orbiting bodies. The Moon's closest approach to the Earth is called perigee and its farthest point is called apogee. The closest approach of a planet to the Sun is called perihelion and the furthest point is called aphelion.

This data structure is returned by searchLunarApsis and nextLunarApsis to iterate through consecutive alternating perigees and apogees.

Constructors

ApsisInfo
fun ApsisInfo(time: Time, kind: ApsisKind, distanceAu: Double)

Properties

Name Summary
distanceAu
val distanceAu: Double
The distance between the centers of the bodies in astronomical units.
distanceKm
val distanceKm: Double
The distance between the centers of the bodies in kilometers.
kind
val kind: ApsisKind
Whether this is a pericenter or apocenter event.
time
val time: Time
The date and time of the apsis.