From 80915992ab4e970ca005009ca1175bae24cb448b Mon Sep 17 00:00:00 2001 From: Bruno de Oliveira Abinader Date: Thu, 23 Mar 2017 18:10:16 +0200 Subject: [core] Added Map::latLngBoundsForCamera --- include/mbgl/util/geo.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/mbgl/util') 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 -- cgit v1.2.1