| 85 | bool IsEmptyInterior() const { return m_minX >= m_maxX || m_minY >= m_maxY; } |
| 86 | |
| 87 | void Add(m2::Point<T> const & p) |
| 88 | { |
| 89 | m_minX = std::min(p.x, m_minX); |
| 90 | m_minY = std::min(p.y, m_minY); |
| 91 | m_maxX = std::max(p.x, m_maxX); |
| 92 | m_maxY = std::max(p.y, m_maxY); |
| 93 | } |
| 94 | |
| 95 | void Add(m2::Rect<T> const & r) |
| 96 | { |
no outgoing calls