Rect::ExpandToPoint

Rect::ExpandToPoint
inline Rect<T>& ExpandToPoint(const Point<T> & pt);
inline Rect<T>& ExpandToPoint(T x, T y);
Description

ExpandToPoint expand the rectangle to enclose the given point.

Parameters
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. 
Return Value

A Rect reference to the new expanded rectangle.