31#ifndef KHOLIDAYS_LUNARPHASE_H
32#define KHOLIDAYS_LUNARPHASE_H
61#include <tqdatetime.h>
68 enum Phase { New, FirstQ, LastQ, Full, None };
69 enum Hemisphere { Northern, Southern };
81 Phase phase( const TQDate &date ) const;
90 TQString phaseStr( const TQDate &date ) const;
129 double percentFull( uint t ) const;
137 double degreesToRadians( double degree ) const;
143 void adj360( double *degree ) const;
145 Hemisphere mHemisphere;
Represents and manages a Lunar Phase.
Phase phase(const TQDate &date) const Return the lunar phase for the specified Gregorian date.
TQString hemisphereStr() const Return hemisphere as a clear text string.
Hemisphere hemisphere() const Return the hemisphere.
void setHemisphere(Hemisphere hemisphere=Northern) Set the hemisphere.
static TQString phaseName(Phase phase) Return the string representation of phase.
static TQString hemisphereName(Hemisphere hemisphere) Return the string representation of hemisphere.
TQString phaseStr(const TQDate &date) const Return the lunar phase as a text string for the specified date.
|