ExpandToPoint expand the rectangle to enclose the given point.
Parameters |
Description |
const Point<T> & pt |
A point whose x component denotes x1 and x2 and y component denotes the y1 and y2 of the rectangle. |
T x |
The x component of the point which is to be enclosed and denotes the x1 and x2 components of the rectangle. |
T y |
The y component of the point which is to be enclosed and denotes the y1 and y2 components of the rectangle. |
A Rect reference to the new expanded rectangle.