Home | History | Annotate | Download | only in i18n

Lines Matching full:calendarastronomer

104 const double CalendarAstronomer::SYNODIC_MONTH  = 29.530588853;
202 const double CalendarAstronomer::PI = 3.14159265358979323846;
204 #define CalendarAstronomer_PI2 (CalendarAstronomer::PI*2.0)
205 #define RAD_HOUR ( 12 / CalendarAstronomer::PI ) // radians -> hours
206 #define DEG_RAD ( CalendarAstronomer::PI / 180 ) // degrees -> radians
207 #define RAD_DEG ( 180 / CalendarAstronomer::PI ) // radians -> degrees
223 return normalize(angle, CalendarAstronomer::PI * 2.0);
230 return normalize(angle + CalendarAstronomer::PI, CalendarAstronomer::PI * 2.0) - CalendarAstronomer::PI;
238 * Construct a new <code>CalendarAstronomer</code> object that is initialized to
243 CalendarAstronomer::CalendarAstronomer():
249 * Construct a new <code>CalendarAstronomer</code> object that is initialized to
254 CalendarAstronomer::CalendarAstronomer(UDate d): fTime(d), fLongitude(0.0), fLatitude(0.0), fGmtOffset(0.0), moonPosition(0,0), moonPositionSet(FALSE) {
259 * Construct a new <code>CalendarAstronomer</code> object with the given
273 CalendarAstronomer::CalendarAstronomer(double longitude, double latitude) :
281 CalendarAstronomer::~CalendarAstronomer()
290 * Set the current date and time of this <code>CalendarAstronomer</code> object. All
301 void CalendarAstronomer::setTime(UDate aTime) {
308 * Set the current date and time of this <code>CalendarAstronomer</code> object. All
322 void CalendarAstronomer::setJulianDay(double jdn) {
329 * Get the current time of this <code>CalendarAstronomer</code> object,
338 UDate CalendarAstronomer::getTime() {
343 * Get the current time of this <code>CalendarAstronomer</code> object,
352 double CalendarAstronomer::getJulianDay() {
367 double CalendarAstronomer::getJulianCentury() {
379 double CalendarAstronomer::getGreenwichSidereal() {
391 double CalendarAstronomer::getSiderealOffset() {
406 double CalendarAstronomer::getLocalSidereal() {
419 double CalendarAstronomer::lstToUT(double lst) {
445 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equatorial& result, const CalendarAstronomer::Ecliptic& ecliptic)
460 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equatorial& result, double eclipLong, double eclipLat)
490 CalendarAstronomer::Equatorial& CalendarAstronomer::eclipticToEquatorial(CalendarAstronomer::Equatorial& result, double eclipLong)
499 CalendarAstronomer::Horizon& CalendarAstronomer::eclipticToHorizon(CalendarAstronomer::Horizon& result, double eclipLong)
504 double H = getLocalSidereal()*CalendarAstronomer::PI/12 - equatorial.ascension; // Hour-angle
527 // Angles are in radians (after multiplying by CalendarAstronomer::PI/180)
531 #define SUN_ETA_G (279.403303 * CalendarAstronomer::PI/180) // Ecliptic longitude at epoch
532 #define SUN_OMEGA_G (282.768422 * CalendarAstronomer::PI/180) // Ecliptic longitude of perigee
535 //double sunTheta0 (0.533128 * CalendarAstronomer::PI/180) // Angular diameter at R0
623 double CalendarAstronomer::getSunLongitude()
637 /*public*/ void CalendarAstronomer::getSunLongitude(double jDay, double &longitude, double &meanAnomaly)
665 CalendarAstronomer::Equatorial& CalendarAstronomer::getSunPosition(CalendarAstronomer::Equatorial& result) {
677 /*double CalendarAstronomer::VERNAL_EQUINOX() {
688 double CalendarAstronomer::SUMMER_SOLSTICE() {
689 return (CalendarAstronomer::PI/2);
699 /*double CalendarAstronomer::AUTUMN_EQUINOX() {
700 return (CalendarAstronomer::PI);
710 double CalendarAstronomer::WINTER_SOLSTICE() {
711 return ((CalendarAstronomer::PI*3)/2);
714 CalendarAstronomer::AngleFunc::~AngleFunc() {}
722 class SunTimeAngleFunc : public CalendarAstronomer::AngleFunc {
724 virtual double eval(CalendarAstronomer& a) { return a.getSunLongitude(); }
727 UDate CalendarAstronomer::getSunTime(double desired, UBool next)
737 CalendarAstronomer::CoordFunc::~CoordFunc() {}
739 class RiseSetCoordFunc : public CalendarAstronomer::CoordFunc {
741 virtual void eval(CalendarAstronomer::Equatorial& result, CalendarAstronomer&a) { a.getSunPosition(result); }
744 UDate CalendarAstronomer::getSunRiseSet(UBool rise)
1042 #define moonL0 (318.351648 * CalendarAstronomer::PI/180 ) // Mean long. at epoch
1043 #define moonP0 ( 36.340410 * CalendarAstronomer::PI/180 ) // Mean long. of perigee
1044 #define moonN0 ( 318.510107 * CalendarAstronomer::PI/180 ) // Mean long. of node
1045 #define moonI ( 5.145366 * CalendarAstronomer::PI/180 ) // Inclination of orbit
1050 #define moonT0 ( 0.5181 * CalendarAstronomer::PI/180 ) // Angular size at distance A
1051 #define moonPi ( 0.9507 * CalendarAstronomer::PI/180 ) // Parallax at distance A
1059 const CalendarAstronomer::Equatorial& CalendarAstronomer::getMoonPosition()
1112 double variation = 0.6583*CalendarAstronomer::PI/180 * ::sin(2*(moonLongitude - sunLongitude));
1149 double CalendarAstronomer::getMoonAge() {
1176 double CalendarAstronomer::getMoonPhase() {
1188 const CalendarAstronomer::MoonAge CalendarAstronomer::NEW_MOON() {
1189 return CalendarAstronomer::MoonAge(0);
1198 /*const CalendarAstronomer::MoonAge CalendarAstronomer::FIRST_QUARTER() {
1199 return CalendarAstronomer::MoonAge(CalendarAstronomer::PI/2);
1208 const CalendarAstronomer::MoonAge CalendarAstronomer::FULL_MOON() {
1209 return CalendarAstronomer::MoonAge(CalendarAstronomer::PI);
1218 class MoonTimeAngleFunc : public CalendarAstronomer::AngleFunc {
1220 virtual double eval(CalendarAstronomer&a) { return a.getMoonAge(); }
1223 /*const CalendarAstronomer::MoonAge CalendarAstronomer::LAST_QUARTER() {
1224 return CalendarAstronomer::MoonAge((CalendarAstronomer::PI*3)/2);
1237 UDate CalendarAstronomer::getMoonTime(double desired, UBool next)
1257 UDate CalendarAstronomer::getMoonTime(const CalendarAstronomer::MoonAge& desired, UBool next) {
1261 class MoonRiseSetCoordFunc : public CalendarAstronomer::CoordFunc {
1263 virtual void eval(CalendarAstronomer::Equatorial& result, CalendarAstronomer&a) { result = a.getMoonPosition(); }
1272 UDate CalendarAstronomer::getMoonRiseSet(UBool rise)
1286 UDate CalendarAstronomer::timeOfAngle(AngleFunc& func, double desired,
1329 // CalendarAstronomer.timeOfAngle() diverging: 1.348508727575625E9 ->
1354 UDate CalendarAstronomer::riseOrSet(CoordFunc& func, UBool rise,
1403 double CalendarAstronomer::eclipticObliquity() {
1423 void CalendarAstronomer::clearCache() {
1455 /*UDate CalendarAstronomer::local(UDate localMillis) {
1467 UnicodeString CalendarAstronomer::Ecliptic::toString() const
1478 UnicodeString CalendarAstronomer::Equatorial::toString() const
1490 UnicodeString CalendarAstronomer::Horizon::toString() const