sgp4/CoordTopographic.h

48 lines
998 B
C
Raw Normal View History

2011-04-23 11:18:51 +00:00
#ifndef COORDTOPOGRAPHIC_H_
#define COORDTOPOGRAPHIC_H_
2011-03-24 15:55:10 +00:00
#include <iostream>
2011-05-26 23:14:00 +00:00
struct CoordTopographic {
2011-03-24 15:55:10 +00:00
public:
CoordTopographic()
2011-05-26 23:14:00 +00:00
: azimuth(0.0), elevation(0.0), range(0.0), range_rate(0.0) {
2011-03-24 15:55:10 +00:00
}
2011-05-26 23:14:00 +00:00
CoordTopographic(double az, double el, double rnge, double rnge_rate)
: azimuth(az), elevation(el), range(rnge), range_rate(rnge_rate) {
2011-03-24 15:55:10 +00:00
}
CoordTopographic(const CoordTopographic& b);
2011-03-24 15:55:10 +00:00
virtual ~CoordTopographic() {
};
CoordTopographic & operator =(const CoordTopographic& b);
bool operator ==(const CoordTopographic& b) const;
bool operator !=(const CoordTopographic& b) const;
friend std::ostream& operator<< (std::ostream& stream, const CoordTopographic& topo);
2011-03-24 15:55:10 +00:00
/*
* radians
*/
2011-05-26 23:14:00 +00:00
double azimuth;
2011-03-24 15:55:10 +00:00
/*
* radians
*/
2011-05-26 23:14:00 +00:00
double elevation;
2011-03-24 15:55:10 +00:00
/*
* kilometers
*/
2011-05-26 23:14:00 +00:00
double range;
2011-03-24 15:55:10 +00:00
/*
* kilometers / second
*/
2011-05-26 23:14:00 +00:00
double range_rate;
2011-03-24 15:55:10 +00:00
};
#endif