Lines Matching refs:CalendarAstronomer
105 const double CalendarAstronomer::SYNODIC_MONTH = 29.530588853;
203 const double CalendarAstronomer::PI = 3.14159265358979323846;
205 #define CalendarAstronomer_PI2 (CalendarAstronomer::PI*2.0)
206 #define RAD_HOUR ( 12 / CalendarAstronomer::PI ) // radians -> hours
207 #define DEG_RAD ( CalendarAstronomer::PI / 180 ) // degrees -> radians
208 #define RAD_DEG ( 180 / CalendarAstronomer::PI ) // radians -> degrees
224 return normalize(angle, CalendarAstronomer::PI * 2.0); in norm2PI()
231 …return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronome… in normPI()
244 CalendarAstronomer::CalendarAstronomer(): in CalendarAstronomer() function in CalendarAstronomer
255 CalendarAstronomer::CalendarAstronomer(UDate d): fTime(d), fLongitude(0.0), fLatitude(0.0), fGmtOff… in CalendarAstronomer() function in CalendarAstronomer
274 CalendarAstronomer::CalendarAstronomer(double longitude, double latitude) : in CalendarAstronomer() function in CalendarAstronomer
282 CalendarAstronomer::~CalendarAstronomer() in ~CalendarAstronomer()
302 void CalendarAstronomer::setTime(UDate aTime) { in setTime()
323 void CalendarAstronomer::setJulianDay(double jdn) { in setJulianDay()
339 UDate CalendarAstronomer::getTime() { in getTime()
353 double CalendarAstronomer::getJulianDay() { in getJulianDay()
368 double CalendarAstronomer::getJulianCentury() { in getJulianCentury()
380 double CalendarAstronomer::getGreenwichSidereal() { in getGreenwichSidereal()
392 double CalendarAstronomer::getSiderealOffset() { in getSiderealOffset()
407 double CalendarAstronomer::getLocalSidereal() { in getLocalSidereal()
420 double CalendarAstronomer::lstToUT(double lst) { in lstToUT()
446 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equato… in eclipticToEquatorial()
461 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equato… in eclipticToEquatorial()
491 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equato… in eclipticToEquatorial()
500 CalendarAstronomer::Horizon& CalendarAstronomer::eclipticToHorizon(CalendarAstronomer::Horizon& res… in eclipticToHorizon()
505 … double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle in eclipticToHorizon()
532 #define SUN_ETA_G (279.403303 * CalendarAstronomer::PI/180) // Ecliptic longitude at epoch
533 #define SUN_OMEGA_G (282.768422 * CalendarAstronomer::PI/180) // Ecliptic longitude of perigee
624 double CalendarAstronomer::getSunLongitude() in getSunLongitude()
638 /*public*/ void CalendarAstronomer::getSunLongitude(double jDay, double &longitude, double &meanAno… in getSunLongitude()
666 CalendarAstronomer::Equatorial& CalendarAstronomer::getSunPosition(CalendarAstronomer::Equatorial& … in getSunPosition()
689 double CalendarAstronomer::SUMMER_SOLSTICE() { in SUMMER_SOLSTICE()
690 return (CalendarAstronomer::PI/2); in SUMMER_SOLSTICE()
711 double CalendarAstronomer::WINTER_SOLSTICE() { in WINTER_SOLSTICE()
712 return ((CalendarAstronomer::PI*3)/2); in WINTER_SOLSTICE()
715 CalendarAstronomer::AngleFunc::~AngleFunc() {} in ~AngleFunc()
723 class SunTimeAngleFunc : public CalendarAstronomer::AngleFunc {
726 virtual double eval(CalendarAstronomer& a) { return a.getSunLongitude(); } in eval()
731 UDate CalendarAstronomer::getSunTime(double desired, UBool next) in getSunTime()
741 CalendarAstronomer::CoordFunc::~CoordFunc() {} in ~CoordFunc()
743 class RiseSetCoordFunc : public CalendarAstronomer::CoordFunc {
746 …virtual void eval(CalendarAstronomer::Equatorial& result, CalendarAstronomer&a) { a.getSunPositio… in eval()
751 UDate CalendarAstronomer::getSunRiseSet(UBool rise) in getSunRiseSet()
1049 #define moonL0 (318.351648 * CalendarAstronomer::PI/180 ) // Mean long. at epoch
1050 #define moonP0 ( 36.340410 * CalendarAstronomer::PI/180 ) // Mean long. of perigee
1051 #define moonN0 ( 318.510107 * CalendarAstronomer::PI/180 ) // Mean long. of node
1052 #define moonI ( 5.145366 * CalendarAstronomer::PI/180 ) // Inclination of orbit
1057 #define moonT0 ( 0.5181 * CalendarAstronomer::PI/180 ) // Angular size at distance A
1058 #define moonPi ( 0.9507 * CalendarAstronomer::PI/180 ) // Parallax at distance A
1066 const CalendarAstronomer::Equatorial& CalendarAstronomer::getMoonPosition() in getMoonPosition()
1119 … double variation = 0.6583*CalendarAstronomer::PI/180 * ::sin(2*(moonLongitude - sunLongitude)); in getMoonPosition()
1156 double CalendarAstronomer::getMoonAge() { in getMoonAge()
1183 double CalendarAstronomer::getMoonPhase() { in getMoonPhase()
1195 const CalendarAstronomer::MoonAge CalendarAstronomer::NEW_MOON() { in NEW_MOON()
1196 return CalendarAstronomer::MoonAge(0); in NEW_MOON()
1215 const CalendarAstronomer::MoonAge CalendarAstronomer::FULL_MOON() { in FULL_MOON()
1216 return CalendarAstronomer::MoonAge(CalendarAstronomer::PI); in FULL_MOON()
1225 class MoonTimeAngleFunc : public CalendarAstronomer::AngleFunc {
1228 virtual double eval(CalendarAstronomer&a) { return a.getMoonAge(); } in eval()
1247 UDate CalendarAstronomer::getMoonTime(double desired, UBool next) in getMoonTime()
1267 UDate CalendarAstronomer::getMoonTime(const CalendarAstronomer::MoonAge& desired, UBool next) { in getMoonTime()
1271 class MoonRiseSetCoordFunc : public CalendarAstronomer::CoordFunc {
1274 …virtual void eval(CalendarAstronomer::Equatorial& result, CalendarAstronomer&a) { result = a.getMo… in eval()
1285 UDate CalendarAstronomer::getMoonRiseSet(UBool rise) in getMoonRiseSet()
1299 UDate CalendarAstronomer::timeOfAngle(AngleFunc& func, double desired, in timeOfAngle()
1367 UDate CalendarAstronomer::riseOrSet(CoordFunc& func, UBool rise, in riseOrSet()
1416 double CalendarAstronomer::eclipticObliquity() { in eclipticObliquity()
1436 void CalendarAstronomer::clearCache() { in clearCache()
1480 UnicodeString CalendarAstronomer::Ecliptic::toString() const in toString()
1491 UnicodeString CalendarAstronomer::Equatorial::toString() const in toString()
1503 UnicodeString CalendarAstronomer::Horizon::toString() const in toString()