astronomy.cpp File Reference

#include "space/astronomy.hpp"
#include <cmath>

Include dependency graph for astronomy.cpp:

Go to the source code of this file.

Namespaces

namespace  periapsis
namespace  periapsis::space

Functions

Geographic Coordinates
void geocentric_to_geographic (const gsgl::real_t &polar_radius, const gsgl::real_t &equatorial_radius, const gsgl::real_t &x, const gsgl::real_t &y, const gsgl::real_t &z, gsgl::real_t &lat, gsgl::real_t &lon, gsgl::real_t &alt)
 Converts from geocentric cartesian coordinates to geographic polar coordinates.
void geographic_to_geocentric (const gsgl::real_t &polar_radius, const gsgl::real_t &equatorial_radius, const gsgl::real_t &lat, const gsgl::real_t &lon, const gsgl::real_t &alt, gsgl::real_t &x, gsgl::real_t &y, gsgl::real_t &z)
 Converts from geographic polar coordinates to geocentric cartesian coordinates.

Variables

gsgl::real_t eq_wrt_ec_pre_mult []
 Also from the Hipparcos data paper; the pre-multiplicative orientation of the orientation of the equatorial frame wrt. the ecliptic.
double J2000 = 2451545.0
Coordinate System Transforms
Note that these are for the usual OpenGL setup where transforms are done by multiplying the matrix by the vector to transform.

transform ECLIPTIC_WRT_EQUATORIAL (eq_wrt_ec_pre_mult)
transform ECLIPTIC_WRT_GALACTIC = EQUATORIAL_WRT_GALACTIC * ECLIPTIC_WRT_EQUATORIAL
transform EQUATORIAL_WRT_ECLIPTIC = ECLIPTIC_WRT_EQUATORIAL.transpose()
transform EQUATORIAL_WRT_GALACTIC = GALACTIC_WRT_EQUATORIAL.transpose()
transform GALACTIC_WRT_ECLIPTIC = ECLIPTIC_WRT_GALACTIC.transpose()
transform GALACTIC_WRT_EQUATORIAL (eq_wrt_gal_pre_mult)


Generated on Sat Mar 1 13:50:03 2008 for Periapsis Project by  doxygen 1.5.5