| 191 | } |
| 192 | |
| 193 | void SetSizesToIncludePoint(Point<T> const & pt) |
| 194 | { |
| 195 | Point<T> const c = Center(); |
| 196 | T const dx = math::Abs(pt.x - c.x); |
| 197 | T const dy = math::Abs(pt.y - c.y); |
| 198 | |
| 199 | m_minX = c.x - dx; |
| 200 | m_minY = c.y - dy; |
| 201 | m_maxX = c.x + dx; |
| 202 | m_maxY = c.y + dy; |
| 203 | } |
| 204 | |
| 205 | void SetCenter(m2::Point<T> const & p) { Offset(p - Center()); } |
| 206 |