forked from gopa810/gcal-cpp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
GCDayData.h
57 lines (49 loc) · 1000 Bytes
/
GCDayData.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#pragma once
#include "GCSunData.h"
#include "GCMoonData.h"
class DAYDATA
{
public:
// date of Julian epoch
double jdate;
// sun
SUNDATA sun;
// moon
MOONDATA moon;
// year of Gaurabda epoch
int nGaurabdaYear;
// value of ayanamsa for this date
double msAyanamsa;
// sign of zodiac
int nSunRasi;
// rasi of the moon
int nMoonRasi;
// tithi #
int nTithi;
// tithi at arunodaya
int nTithiArunodaya;
// tithi at sunset
int nTithiSunset;
// tithi elaps.
double nTithiElapse;
// paksa
int nPaksa;
// yoga
int nYoga;
// yoga elaps.
double nYogaElapse;
// naksatra
int nNaksatra;
// naksatra elaps.
double nNaksatraElapse;
// masa
int nMasa;
// distance of moon and sun in degrees
double msDistance;
DAYDATA(void);
int DayCalc(VCTIME date, EARTHDATA earth);
int MasaCalc(VCTIME date, EARTHDATA earth);
static unsigned int gGaurBeg[];
static VCTIME GetFirstDayOfYear(EARTHDATA,int);
static VCTIME GetFirstDayOfMasa(EARTHDATA earth, int GYear, int nMasa);
};