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:
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);