diff options
author | 2024-03-07 21:50:22 +0800 | |
---|---|---|
committer | 2024-03-07 21:50:22 +0800 | |
commit | 505d07a7abccfc707e2d27c2deb2fe460854e751 (patch) | |
tree | d1bd801021deaa99dd18b9027c39d11076d74a46 /src/calendar.h | |
parent | 9b3951efb56b3e1cf3b115c0a2fbfc3b90e28330 (diff) | |
download | calendar-505d07a7abccfc707e2d27c2deb2fe460854e751.tar.gz calendar-505d07a7abccfc707e2d27c2deb2fe460854e751.zip |
Confused about hourAngle
Diffstat (limited to 'src/calendar.h')
-rw-r--r-- | src/calendar.h | 9 |
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> |
10 | using namespace std; | 10 | using namespace std; |
11 | 11 | ||
12 | // 哈尔滨南岗地方经纬度 | ||
13 | #define LONGITUDE 126.68 * M_PI / 180 | ||
14 | #define LATITUDE 45.75 * M_PI / 180 | ||
15 | |||
12 | extern double delta; | 16 | extern double delta; |
13 | extern char jieqi[25][10]; | 17 | extern 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 |