diff --git a/geometry/rect2d.hpp b/geometry/rect2d.hpp index 0e4f5e09f2..6f843f985e 100644 --- a/geometry/rect2d.hpp +++ b/geometry/rect2d.hpp @@ -176,6 +176,11 @@ namespace m2 m_maxY = c.y + dy; } + void SetCenter(m2::Point const & p) + { + Offset(p - Center()); + } + T minX() const { return m_minX; } T minY() const { return m_minY; } T maxX() const { return m_maxX; } @@ -186,14 +191,6 @@ namespace m2 void setMaxX(T maxX) { m_maxX = maxX; } void setMaxY(T maxY) { m_maxY = maxY; } - void Move(Point const & d) - { - m_minX += d.x; - m_minY += d.y; - m_maxX += d.x; - m_maxY += d.y; - } - void Scale(T scale) { scale *= 0.5;