Time Shield Library
C++ library for working with time
Loading...
Searching...
No Matches
time_shield::MoonPhaseSineCosine Struct Reference

sin/cos helper for the Moon phase angle. More...

#include <astronomy_conversions.hpp>

Public Member Functions

constexpr MoonPhaseSineCosine ()=default
 
constexpr MoonPhaseSineCosine (double phase_sin_value, double phase_cos_value, double phase_angle_rad_value) noexcept
 

Public Attributes

double phase_sin = 0.0
 sin(phase angle), continuous around 0/2pi.
 
double phase_cos = 0.0
 cos(phase angle), continuous around 0/2pi.
 
double phase_angle_rad = 0.0
 Phase angle in radians [0..2*pi).
 

Detailed Description

sin/cos helper for the Moon phase angle.

Definition at line 123 of file astronomy_conversions.hpp.

Constructor & Destructor Documentation

◆ MoonPhaseSineCosine() [1/2]

time_shield::MoonPhaseSineCosine::MoonPhaseSineCosine ( )
constexprdefault

◆ MoonPhaseSineCosine() [2/2]

time_shield::MoonPhaseSineCosine::MoonPhaseSineCosine ( double phase_sin_value,
double phase_cos_value,
double phase_angle_rad_value )
inlineconstexprnoexcept

Definition at line 128 of file astronomy_conversions.hpp.

Member Data Documentation

◆ phase_angle_rad

double time_shield::MoonPhaseSineCosine::phase_angle_rad = 0.0

Phase angle in radians [0..2*pi).

Definition at line 126 of file astronomy_conversions.hpp.

◆ phase_cos

double time_shield::MoonPhaseSineCosine::phase_cos = 0.0

cos(phase angle), continuous around 0/2pi.

Definition at line 125 of file astronomy_conversions.hpp.

◆ phase_sin

double time_shield::MoonPhaseSineCosine::phase_sin = 0.0

sin(phase angle), continuous around 0/2pi.

Definition at line 124 of file astronomy_conversions.hpp.


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