blob: eefcd0238671f2b9e3f253949dff067dfc38abe7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "latlon.hpp"
#include "std/sstream.hpp"
namespace ms
{
string DebugPrint(LatLon const & t)
{
ostringstream out;
out.precision(20);
out << "ms::LatLon(" << t.lat << ", " << t.lon << ")";
return out.str();
}
bool LatLon::operator == (ms::LatLon const & p) const
{
return lat == p.lat && lon == p.lon;
}
bool LatLon::EqualDxDy(LatLon const & p, double eps) const
{
return (my::AlmostEqualAbs(lat, p.lat, eps) && my::AlmostEqualAbs(lon, p.lon, eps));
}
} // namespace ms
|