Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2015-07-24 15:54:19 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:58:04 +0300
commitbe7aecb7efa171aa67ac20397794a217f9421dc3 (patch)
tree2e821b4bd637a9af302912697377d00253fb9ffa /geometry/rect2d.hpp
parentd7af959ce6c52d949bbdd2161a507b02f5b6684a (diff)
[search] Implemented retrieval.
Diffstat (limited to 'geometry/rect2d.hpp')
-rw-r--r--geometry/rect2d.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/geometry/rect2d.hpp b/geometry/rect2d.hpp
index 39c8a207f9..d49fa049d0 100644
--- a/geometry/rect2d.hpp
+++ b/geometry/rect2d.hpp
@@ -87,6 +87,8 @@ namespace m2
return (m_minX <= m_maxX && m_minY <= m_maxY);
}
+ bool IsEmptyInterior() const { return m_minX >= m_maxX || m_minY >= m_maxY; }
+
void Add(m2::Point<T> const & p)
{
m_minX = min(p.x, m_minX);