updated Position with distance calc

This commit is contained in:
Henry Winkel
2023-02-14 14:10:07 +01:00
parent 982b701032
commit 84fabb691e
3 changed files with 33 additions and 3 deletions

View File

@@ -23,7 +23,7 @@ namespace SimCore {
* @return Eigen::Vector3d
*/
Eigen::Vector3d getGeocentricPos();
void getGeocentricPos(double &lat, double &lon,double &h);
/**
* @brief returns a eigen vector3d with the lat, lon, height coordinates
* @return Eigen::Vector3d
@@ -33,9 +33,13 @@ namespace SimCore {
void setGeocentricPos(double X, double Y, double Z);
void setGeodesicPos(double lat, double lon, int height);
bool operator== ( Position &lhs);
double distanceToPosition(Position &p2);
bool operator== ( Position &lhs);
Position& operator=(const Position other);