Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

astro.cpp File Reference

#include <cmath>
#include <iomanip>
#include <cstdio>
#include <celmath/mathlib.h>
#include "celestia.h"
#include "astro.h"

Include dependency graph for astro.cpp:

Go to the source code of this file.

Defines

#define B1950   2433282.423

Functions

ostream & operator<< (ostream &s, const astro::Date d)

Variables

static Mat3f equatorialToCelestial = Mat3f::xrotation(degToRad(23.4392911f))
static Mat3d equatorialToCelestiald = Mat3d::xrotation(degToRad(23.4392911))


Define Documentation

#define B1950   2433282.423
 

Definition at line 31 of file astro.cpp.


Function Documentation

ostream& operator<< ostream &  s,
const astro::Date  d
 

Definition at line 453 of file astro.cpp.

References astro::Date::day, astro::Date::hour, astro::Date::minute, astro::Date::month, astro::Date::seconds, and astro::Date::year.

00454 {
00455     s << d.year << ' ' << setw(2) << setfill('0') << d.month << ' ';
00456     s << setw(2) << setfill('0') << d.day << ' ';
00457     s << setw(2) << setfill('0') << d.hour << ':';
00458     s << setw(2) << setfill('0') << d.minute << ':';
00459     s << setw(2) << setfill('0') << (int) d.seconds;
00460     return s;
00461 }


Variable Documentation

Mat3f equatorialToCelestial = Mat3f::xrotation(degToRad(23.4392911f)) [static]
 

Definition at line 33 of file astro.cpp.

Referenced by astro::equatorialToCelestialCart().

Mat3d equatorialToCelestiald = Mat3d::xrotation(degToRad(23.4392911)) [static]
 

Definition at line 34 of file astro.cpp.

Referenced by astro::equatorialToCelestialCart().


Generated on Sat Jan 14 22:30:35 2006 for Celestia by  doxygen 1.4.1