2011-04-23 11:18:51 +00:00
|
|
|
#include "CoordGeodetic.h"
|
|
|
|
|
|
|
|
CoordGeodetic::CoordGeodetic(const CoordGeodetic& b) {
|
|
|
|
|
2011-05-26 23:10:31 +00:00
|
|
|
latitude = b.latitude;
|
|
|
|
longitude = b.longitude;
|
|
|
|
altitude = b.altitude;
|
2011-04-23 11:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
CoordGeodetic& CoordGeodetic::operator =(const CoordGeodetic& b) {
|
|
|
|
|
|
|
|
if (this != &b) {
|
2011-05-26 23:10:31 +00:00
|
|
|
latitude = b.latitude;
|
|
|
|
longitude = b.longitude;
|
|
|
|
altitude = b.altitude;
|
2011-04-23 11:18:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
return (*this);
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CoordGeodetic::operator ==(const CoordGeodetic& b) const {
|
|
|
|
|
2011-05-26 23:10:31 +00:00
|
|
|
if (latitude == b.latitude &&
|
|
|
|
longitude == b.longitude &&
|
|
|
|
altitude == b.altitude) {
|
2011-04-23 11:18:51 +00:00
|
|
|
return true;
|
|
|
|
} else {
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bool CoordGeodetic::operator !=(const CoordGeodetic& b) const {
|
|
|
|
|
2011-05-26 23:10:31 +00:00
|
|
|
if (latitude == b.latitude &&
|
|
|
|
longitude == b.longitude &&
|
|
|
|
altitude == b.altitude) {
|
2011-04-23 11:18:51 +00:00
|
|
|
return false;
|
|
|
|
} else {
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|