Remove equality checks for Coord*
parent
21fb28bbfe
commit
38f522b0a4
|
@ -94,26 +94,6 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Equality operator
|
|
||||||
* @param[in] geo the object to compare with
|
|
||||||
* @returns whether the object is equal
|
|
||||||
*/
|
|
||||||
bool operator==(const CoordGeodetic& geo) const
|
|
||||||
{
|
|
||||||
return IsEqual(geo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inequality operator
|
|
||||||
* @param[in] geo the object to compare with
|
|
||||||
* @returns whether the object is not equal
|
|
||||||
*/
|
|
||||||
bool operator!=(const CoordGeodetic& geo) const
|
|
||||||
{
|
|
||||||
return !IsEqual(geo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dump this object to a string
|
* Dump this object to a string
|
||||||
* @returns string
|
* @returns string
|
||||||
|
@ -134,19 +114,6 @@ public:
|
||||||
double longitude;
|
double longitude;
|
||||||
/** altitude in kilometers */
|
/** altitude in kilometers */
|
||||||
double altitude;
|
double altitude;
|
||||||
|
|
||||||
private:
|
|
||||||
bool IsEqual(const CoordGeodetic& geo) const
|
|
||||||
{
|
|
||||||
bool equal = false;
|
|
||||||
if (latitude == geo.latitude &&
|
|
||||||
longitude == geo.longitude &&
|
|
||||||
altitude == geo.altitude)
|
|
||||||
{
|
|
||||||
equal = false;
|
|
||||||
}
|
|
||||||
return equal;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -92,26 +92,6 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Equality operator
|
|
||||||
* @param[in] topo value to check
|
|
||||||
* @returns whether the object is equal
|
|
||||||
*/
|
|
||||||
bool operator==(const CoordTopocentric& topo) const
|
|
||||||
{
|
|
||||||
return IsEqual(topo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Inequality operator
|
|
||||||
* @param[in] topo the object to compare with
|
|
||||||
* @returns whether the object is not equal
|
|
||||||
*/
|
|
||||||
bool operator !=(const CoordTopocentric& topo) const
|
|
||||||
{
|
|
||||||
return !IsEqual(topo);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dump this object to a string
|
* Dump this object to a string
|
||||||
* @returns string
|
* @returns string
|
||||||
|
@ -135,20 +115,6 @@ public:
|
||||||
double range;
|
double range;
|
||||||
/** range rate in kilometers per second */
|
/** range rate in kilometers per second */
|
||||||
double range_rate;
|
double range_rate;
|
||||||
|
|
||||||
private:
|
|
||||||
bool IsEqual(const CoordTopocentric& topo) const
|
|
||||||
{
|
|
||||||
bool equal = false;
|
|
||||||
if (azimuth == topo.azimuth &&
|
|
||||||
elevation == topo.elevation &&
|
|
||||||
range == topo.range &&
|
|
||||||
range_rate == topo.range_rate)
|
|
||||||
{
|
|
||||||
equal = true;
|
|
||||||
}
|
|
||||||
return equal;
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue