Remove equality checks for Coord*

feature/19
Daniel Warner 2017-02-14 20:51:24 +00:00
parent 21fb28bbfe
commit 38f522b0a4
2 changed files with 0 additions and 67 deletions

View File

@ -94,26 +94,6 @@ public:
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
* @returns string
@ -134,19 +114,6 @@ public:
double longitude;
/** altitude in kilometers */
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;
}
};
/**

View File

@ -92,26 +92,6 @@ public:
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
* @returns string
@ -135,20 +115,6 @@ public:
double range;
/** range rate in kilometers per second */
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;
}
};