siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
siderust::MoonPhaseGeometry Struct Reference

Geometric description of the Moon's phase at a point in time. More...

#include <siderust/lunar_phase.hpp>

Static Public Member Functions

static MoonPhaseGeometry from_c (const siderust_moon_phase_geometry_t &c)
 

Public Attributes

qtty::Radian phase_angle
 Phase angle in [0, π].
 
double illuminated_fraction
 Illuminated disc fraction in [0, 1].
 
qtty::Radian elongation
 Sun–Moon elongation.
 
bool waxing
 True when the Moon is waxing.
 

Detailed Description

Geometric description of the Moon's phase at a point in time.

Definition at line 58 of file lunar_phase.hpp.

Member Function Documentation

◆ from_c()

static MoonPhaseGeometry siderust::MoonPhaseGeometry::from_c ( const siderust_moon_phase_geometry_t &  c)
inlinestatic

Member Data Documentation

◆ elongation

qtty::Radian siderust::MoonPhaseGeometry::elongation

Sun–Moon elongation.

Definition at line 61 of file lunar_phase.hpp.

Referenced by siderust::moon::phase_label().

◆ illuminated_fraction

double siderust::MoonPhaseGeometry::illuminated_fraction

Illuminated disc fraction in [0, 1].

Definition at line 60 of file lunar_phase.hpp.

Referenced by from_c(), siderust::illuminated_percent(), and siderust::moon::phase_label().

◆ phase_angle

qtty::Radian siderust::MoonPhaseGeometry::phase_angle

Phase angle in [0, π].

Definition at line 59 of file lunar_phase.hpp.

Referenced by siderust::moon::phase_label().

◆ waxing

bool siderust::MoonPhaseGeometry::waxing

True when the Moon is waxing.

Definition at line 62 of file lunar_phase.hpp.

Referenced by siderust::moon::phase_label().


The documentation for this struct was generated from the following file: