diff options
author | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-23 18:10:16 +0200 |
---|---|---|
committer | Bruno de Oliveira Abinader <bruno@mapbox.com> | 2017-03-24 13:51:35 +0200 |
commit | 80915992ab4e970ca005009ca1175bae24cb448b (patch) | |
tree | 75cfac7d0933b77ad5e93e95471cc0b96e85ba88 /include/mbgl/util | |
parent | e67abfbe67d7c08e90fdbd8727c4e9ed17dfa1ed (diff) | |
download | qtlocation-mapboxgl-80915992ab4e970ca005009ca1175bae24cb448b.tar.gz |
[core] Added Map::latLngBoundsForCamera
Diffstat (limited to 'include/mbgl/util')
-rw-r--r-- | include/mbgl/util/geo.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/mbgl/util/geo.hpp b/include/mbgl/util/geo.hpp index 57a028e467..2cc9297aae 100644 --- a/include/mbgl/util/geo.hpp +++ b/include/mbgl/util/geo.hpp @@ -218,4 +218,12 @@ public: ScreenCoordinate getCenter(uint16_t width, uint16_t height) const; }; +constexpr bool operator==(const EdgeInsets& a, const EdgeInsets& b) { + return a.top == b.top && a.left == b.left && a.bottom == b.bottom && a.right == b.right; +} + +constexpr bool operator!=(const EdgeInsets& a, const EdgeInsets& b) { + return !(a == b); +} + } // namespace mbgl |