54 static const double PI;
61 static double NormalizeDegrees(
const double& x);
66 static double RadToDeg(
const double& x);
71 static double DegToRad(
const double& x);
75 static double SinDeg(
const double& x);
79 static double CosDeg(
const double& x);
83 static double Atan2Deg(
const double& y,
const double& x);
93 static void ConvertEclipticToEquatorialRad(
const double& lon,
const double& lat,
double& rasc,
double& decl);
97 static void ConvertRectangularToSpherical(
const double& x,
const double& y,
const double& z,
double& rasc,
double& decl,
double& dist);
101 static void ConvertSphericalToRectangular(
const double& rasc,
const double& decl,
const double& dist,
double& x,
double& y,
double& z);
114 static void ConvertEquatorialToHorizontal(
const double& jday,
const double& longitude,
const double& latitude,
const double& rasc,
const double& decl,
double& azimuth,
double& altitude);
118 static void GetEclipticSunPosition(
const double& jday,
double& lambda,
double& beta);
122 static void GetEquatorialSunPosition(
const double& jday,
double& sunRightAscension,
double& sunDeclinaison);
132 static void GetHorizontalSunPosition(
const double& jday,
const double& longitude,
const double& latitude,
double& azimuth,
double& altitude);
136 static void GetHorizontalSunPosition(
const double& jday,
const Ogre::Degree& longitude,
const Ogre::Degree& latitude, Ogre::Degree& azimuth, Ogre::Degree& altitude);
143 static void GetEclipticMoonPositionRad(
const double& jday,
double& lon,
double& lat);
147 static void GetHorizontalMoonPosition(
const double& jday,
const double& longitude,
const double& latitude,
double& azimuth,
double& altitude);
151 static void GetHorizontalMoonPosition(
const double& jday,
const Ogre::Degree& longitude,
const Ogre::Degree& latitude, Ogre::Degree& azimuth, Ogre::Degree& altitude);
156 static void GetMoonPhase(
const double& jday,
float& moonPhase);
163 static int GetJulianDayFromGregorianDate(
const int& year,
const int& month,
const int& day);
171 static double GetJulianDayFromGregorianDateTime(
const int& year,
const int& month,
const int& day,
const int& hour,
const int& minute,
const double& second);
176 static double GetJulianDayFromGregorianDateTime(
const int& year,
const int& month,
const int& day,
const double& secondsFromMidnight);
181 static void GetGregorianDateFromJulianDay(
const int& julianDay,
int& year,
int& month,
int& day);
186 static void GetGregorianDateTimeFromJulianDay(
const double& julianDay,
int& year,
int& month,
int& day,
int& hour,
int& minute,
double& second);
191 static void GetGregorianDateFromJulianDay(
const double& julianDay,
int& year,
int& month,
int& day);
203 static int EnterHighPrecissionFloatingPointMode();
209 static void RestoreFloatingPointMode(
const int& oldMode);
213 static void GetEclipticSunMeanLongitude(
const double& jday,
double& sunlon);