summaryrefslogtreecommitdiffstats
path: root/src/calendar.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/calendar.h')
-rw-r--r--src/calendar.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/calendar.h b/src/calendar.h
index ef785c0..810fa0c 100644
--- a/src/calendar.h
+++ b/src/calendar.h
@@ -9,6 +9,10 @@
9#include <vector> 9#include <vector>
10using namespace std; 10using namespace std;
11 11
12// 哈尔滨南岗地方经纬度
13#define LONGITUDE 126.68 * M_PI / 180
14#define LATITUDE 45.75 * M_PI / 180
15
12extern double delta; 16extern double delta;
13extern char jieqi[25][10]; 17extern char jieqi[25][10];
14 18
@@ -90,6 +94,9 @@ class parameter {
90 pair<double, double> sun_longitude(double t); 94 pair<double, double> sun_longitude(double t);
91 95
92 double moon_longitude(double t); 96 double moon_longitude(double t);
97
98 double getHourAngle(double julianKiloTime, double longitude,
99 double latitude, double alpha);
93}; 100};
94 101
95#endif 102#endif \ No newline at end of file