diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-10 18:59:04 +0300 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2016-06-13 10:11:20 +0300 |
commit | 9b6c2e6940ed33a87a20274eda19320e8c688fdf (patch) | |
tree | 949d871c2f159849b0cd4c7955a3c257edd069a0 /include/mbgl/util/geo.hpp | |
parent | 62d355ab15e292462db6453578e07f06b0eafd6b (diff) | |
download | qtlocation-mapboxgl-9b6c2e6940ed33a87a20274eda19320e8c688fdf.tar.gz |
[test] Added Projection tests
Diffstat (limited to 'include/mbgl/util/geo.hpp')
-rw-r--r-- | include/mbgl/util/geo.hpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 7e15d5c2f1..5db307e482 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -67,8 +67,8 @@ inline bool operator!=(const LatLng& a, const LatLng& b) { class ProjectedMeters { public: - double northing = 0; - double easting = 0; + double northing; + double easting; ProjectedMeters(double n = 0, double e = 0) : northing(n), easting(e) {} @@ -78,6 +78,10 @@ public: } }; +inline bool operator==(const ProjectedMeters& a, const ProjectedMeters& b) { + return a.northing == b.northing && a.easting == b.easting; +} + class LatLngBounds { public: // Return a bounds covering the entire (unwrapped) world. |