ASW



Loading...
Searching...
No Matches
moon.h
Go to the documentation of this file.
1
24
25#ifndef _moon_h_
26#define _moon_h_
27
29
30#include <stdio.h>
31#include <stdlib.h>
32#include <unistd.h>
33#include <time.h>
34#include <math.h>
35
68class Moon {
70 static const double RAD;
73 static const long IGREG;
74 // The mean lunar cycle
75 static const double MEAN_LUNAR_CYCLE;
76
77public:
78
79 Moon() {};
80 ~Moon() {};
81
90 static double phase(int mon,int day,int year);
91
102 static void nextphase(int& mon,int& day,int& year,int& hr,int& min,int nph);
103
120 static double flmoon(int n,int nph,long& jd,double& frac);
121
129 static void Julian2Calendar(long jd,int& mon,int& day,int& year);
130
136 static long Calendar2Julian(int mon,int day,int year);
137
143 static bool isDST(long jd);
148 static bool isDST(int mon,int day,int year);
149
150};
151
152
154
155#endif
156
Calculate the phase of the moon.
Definition: moon.h:68
Moon()
Definition: moon.h:79
~Moon()
Definition: moon.h:80
static long Calendar2Julian(int mon, int day, int year)
Definition: moon.c++:235
static double flmoon(int n, int nph, long &jd, double &frac)
Definition: moon.c++:162
static const long IGREG
Definition: moon.h:73
static const double RAD
Radians to degree convertion.
Definition: moon.h:70
static double phase(int mon, int day, int year)
Definition: moon.c++:30
static void nextphase(int &mon, int &day, int &year, int &hr, int &min, int nph)
Definition: moon.c++:120
static const double MEAN_LUNAR_CYCLE
Definition: moon.h:75
static bool isDST(long jd)
Definition: moon.c++:258
static void Julian2Calendar(long jd, int &mon, int &day, int &year)
Definition: moon.c++:205