Rect::SetCenter

Rect::SetCenter
inline void SetCenter(const Point<T> & nc);
inline void SetCenter(T x, T y);
Description

SetCenter sets the center of a rectangle by offsetting the rectangle.

Parameters
Parameters 
Description 
const Point<T> & nc 
A point whose x and y coordinate represents the new center of the rectangle. 
T x 
A value that represents the x value of the new rectangle's center. 
T y 
A value that represents the y value of the new rectangle's center.