remove is_set() and reset() functions from coordinate
This commit is contained in:
parent
2e5cc1e6ae
commit
90f17c2140
@ -55,8 +55,6 @@ struct FixedPointCoordinate
|
||||
"coordinate types incompatible");
|
||||
}
|
||||
|
||||
void reset();
|
||||
bool is_set() const;
|
||||
bool is_valid() const;
|
||||
bool operator==(const FixedPointCoordinate &other) const;
|
||||
|
||||
|
@ -63,15 +63,6 @@ FixedPointCoordinate::FixedPointCoordinate(int lat, int lon) : lat(lat), lon(lon
|
||||
#endif
|
||||
}
|
||||
|
||||
void FixedPointCoordinate::reset()
|
||||
{
|
||||
lat = std::numeric_limits<int>::min();
|
||||
lon = std::numeric_limits<int>::min();
|
||||
}
|
||||
bool FixedPointCoordinate::is_set() const
|
||||
{
|
||||
return (std::numeric_limits<int>::min() != lat) && (std::numeric_limits<int>::min() != lon);
|
||||
}
|
||||
bool FixedPointCoordinate::is_valid() const
|
||||
{
|
||||
if (lat > 90 * COORDINATE_PRECISION || lat < -90 * COORDINATE_PRECISION ||
|
||||
|
Loading…
Reference in New Issue
Block a user