|
CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
|
Typedefs | |
| using | RootGenerator |
| A generator for one principal phase, using its signed-fold numerical convention. | |
Enumerations | |
| enum class | PhaseKind : uint8_t { NEW_MOON , FIRST_QUARTER , FULL_MOON , LAST_QUARTER } |
| The four principal Moon phases. More... | |
Functions | |
| auto | target_angle_deg (const PhaseKind kind) -> double |
| The target elongation for a given phase, in degrees. | |
| auto | moments (const int32_t year, const PhaseKind kind) -> std::vector< double > |
| Calculate the moments of a given Moon phase in a Gregorian year. | |
A generator for one principal phase, using its signed-fold numerical convention.
|
strong |
|
inlinenodiscard |
Calculate the moments of a given Moon phase in a Gregorian year.
| year | The Gregorian year, in [1, 32766]. |
| kind | The phase kind. |
| std::invalid_argument | if year is outside [1, 32766]. |
Positions: VSOP87D (Sun) and truncated ELP2000-82B (Moon), both apparent geocentric.
|
inlinenodiscard |
The target elongation for a given phase, in degrees.