|
Time Shield Library
C++ library for working with time
|
Astronomy entry header with Julian conversions and lunar helpers. More...
Go to the source code of this file.
Classes | |
| struct | time_shield::MoonPhaseSineCosine |
| sin/cos helper for the Moon phase angle. More... | |
Namespaces | |
| namespace | time_shield |
| Main namespace for the Time Shield library. | |
Functions | |
| double | time_shield::moon_phase_jd_approx (fts_t ts) noexcept |
| Get lunar phase in range [0..1) using a simple Julian Day approximation. | |
| double | time_shield::moon_phase (fts_t ts) noexcept |
| Get lunar phase in range [0..1) using the geocentric MoonPhase calculator. | |
| MoonPhaseSineCosine | time_shield::moon_phase_sincos (fts_t ts) noexcept |
| Get sin/cos of the lunar phase angle (continuous signal without wrap-around). | |
| double | time_shield::moon_illumination (fts_t ts) noexcept |
| Get illuminated fraction in range [0..1] using the geocentric MoonPhase calculator. | |
| double | time_shield::moon_age_days_jd_approx (fts_t ts) noexcept |
| Get lunar age in days (~0..29.53) using a simple Julian Day approximation. | |
| double | time_shield::moon_age_days (fts_t ts) noexcept |
| Get lunar age in days (~0..29.53). | |
| astronomy::MoonQuarterInstants | time_shield::moon_quarters (fts_t ts) noexcept |
| Quarter instants around the provided timestamp. | |
| bool | time_shield::is_new_moon_window (fts_t ts, double window_seconds=astronomy::MoonPhase::kDefaultQuarterWindow_s) noexcept |
| Check if timestamp falls into the new moon window (default \pm12h). | |
| bool | time_shield::is_full_moon_window (fts_t ts, double window_seconds=astronomy::MoonPhase::kDefaultQuarterWindow_s) noexcept |
| Check if timestamp falls into the full moon window (default \pm12h). | |
| bool | time_shield::is_first_quarter_window (fts_t ts, double window_seconds=astronomy::MoonPhase::kDefaultQuarterWindow_s) noexcept |
| Check if timestamp falls into the first quarter window (default \pm12h). | |
| bool | time_shield::is_last_quarter_window (fts_t ts, double window_seconds=astronomy::MoonPhase::kDefaultQuarterWindow_s) noexcept |
| Check if timestamp falls into the last quarter window (default \pm12h). | |
Astronomy entry header with Julian conversions and lunar helpers.
Definition in file astronomy_conversions.hpp.