sgp4/CoordGeodetic.h

47 lines
946 B
C
Raw Normal View History

2011-04-23 11:18:51 +00:00
#ifndef COORDGEODETIC_H_
#define COORDGEODETIC_H_
#include <iostream>
2011-05-26 23:10:31 +00:00
struct CoordGeodetic {
2011-04-23 11:18:51 +00:00
public:
CoordGeodetic()
2011-05-26 23:10:31 +00:00
: latitude(0.0), longitude(0.0), altitude(0.0) {
2011-04-23 11:18:51 +00:00
}
/*
* radians
*/
2011-05-26 23:10:31 +00:00
CoordGeodetic(double lat, double lon, double alt)
: latitude(lat), longitude(lon), altitude(alt) {
2011-04-23 11:18:51 +00:00
}
CoordGeodetic(const CoordGeodetic& g);
virtual ~CoordGeodetic() {
};
CoordGeodetic & operator =(const CoordGeodetic& b);
bool operator ==(const CoordGeodetic& b) const;
bool operator !=(const CoordGeodetic& b) const;
2011-05-26 23:10:31 +00:00
friend std::ostream& operator<< (std::ostream& stream, const CoordGeodetic& geo);
2011-04-23 11:18:51 +00:00
/*
* radians (north positive, south negative)
*/
2011-05-26 23:10:31 +00:00
double latitude;
2011-04-23 11:18:51 +00:00
/*
* radians (east positive, west negative)
*/
2011-05-26 23:10:31 +00:00
double longitude;
2011-04-23 11:18:51 +00:00
/*
* kilometers
*/
2011-05-26 23:10:31 +00:00
double altitude;
2011-04-23 11:18:51 +00:00
};
#endif