|
static void | convertEclipticToEquatorialRad (LongReal lon, LongReal lat, LongReal &rasc, LongReal &decl) |
| Convert from ecliptic to ecuatorial spherical coordinates, in radians. More...
|
|
static void | convertRectangularToSpherical (LongReal x, LongReal y, LongReal z, LongReal &rasc, LongReal &decl, LongReal &dist) |
|
static void | convertSphericalToRectangular (LongReal rasc, LongReal decl, LongReal dist, LongReal &x, LongReal &y, LongReal &z) |
|
static void | convertEquatorialToHorizontal (LongReal jday, LongReal longitude, LongReal latitude, LongReal rasc, LongReal decl, LongReal &azimuth, LongReal &altitude) |
| Convert from equatorial to horizontal coordinates. More...
|
|
static void | getVernalEquinoxHourAngle (LongReal jday, LongReal longitude, LongReal &hourAngle) |
| Hour angle is zero for objects on sky meridian, and grows to the east. More...
|
|
static void | getHorizontalSunPosition (LongReal jday, LongReal longitude, LongReal latitude, LongReal &azimuth, LongReal &altitude) |
| Get the sun's position in the sky in, relative to the horizon. More...
|
|
static void | getHorizontalSunPosition (LongReal jday, Ogre::Degree longitude, Ogre::Degree latitude, Ogre::Degree &azimuth, Ogre::Degree &altitude) |
|
static void | getEclipticMoonPositionRad (LongReal jday, LongReal &lon, LongReal &lat) |
| Gets the moon position at a specific time in ecliptic coordinates. More...
|
|
static void | getHorizontalMoonPosition (LongReal jday, LongReal longitude, LongReal latitude, LongReal &azimuth, LongReal &altitude) |
|
static void | getHorizontalMoonPosition (LongReal jday, Ogre::Degree longitude, Ogre::Degree latitude, Ogre::Degree &azimuth, Ogre::Degree &altitude) |
|
static void | getHorizontalNorthEclipticPolePosition (LongReal jday, Ogre::Degree longitude, Ogre::Degree latitude, Ogre::Degree &azimuth, Ogre::Degree &altitude) |
|
static int | getJulianDayFromGregorianDate (int year, int month, int day) |
| Get astronomical julian day from normal gregorian calendar. More...
|
|
static LongReal | getJulianDayFromGregorianDateTime (int year, int month, int day, int hour, int minute, LongReal second) |
| Get astronomical julian day from normal gregorian calendar. More...
|
|
static LongReal | getJulianDayFromGregorianDateTime (int year, int month, int day, LongReal secondsFromMidnight) |
| Get astronomical julian day from normal gregorian calendar. More...
|
|
static void | getGregorianDateFromJulianDay (int julianDay, int &year, int &month, int &day) |
| Get gregorian date from integer julian day.
|
|
static void | getGregorianDateTimeFromJulianDay (LongReal julianDay, int &year, int &month, int &day, int &hour, int &minute, LongReal &second) |
| Get gregorian date time from floating point julian day.
|
|
static void | getGregorianDateFromJulianDay (LongReal julianDay, int &year, int &month, int &day) |
| Get gregorian date from floating point julian day.
|
|
static int | enterHighPrecissionFloatingPointMode () |
| Enter high-precission floating-point mode. More...
|
|
static void | restoreFloatingPointMode (int oldMode) |
| Restore old floating point precission. More...
|
|
Static class with astronomy routines.
This class contains various astronomical routines useful in Caelum.
Most of the formulas are from http://stjarnhimlen.se/comp/ppcomp.html That site contains much more than was implemented here; it has code for determining the positions of all the planets. Only the sun and moon are actually useful for caelum.
The formulas are isolated here in pure procedural code for easier testing (Tests are done as assertions in the demo).
Precision is vital here, so this class uses Caelum::LongReal(double) instead of Ogre::Real(float) for precission. All angles are in degrees unless otherwise mentioned. Ogre::Degree and Ogre::Radian use Ogre::Real and should be avoided here.