diff options
author | Yuri Gorshenin <y@maps.me> | 2015-07-24 15:54:19 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:58:04 +0300 |
commit | be7aecb7efa171aa67ac20397794a217f9421dc3 (patch) | |
tree | 2e821b4bd637a9af302912697377d00253fb9ffa /geometry | |
parent | d7af959ce6c52d949bbdd2161a507b02f5b6684a (diff) |
[search] Implemented retrieval.
Diffstat (limited to 'geometry')
-rw-r--r-- | geometry/rect2d.hpp | 2 |
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); |