void RectSetCenter (Rect *rect, Point center);
Sets the values of a Rect structure so that it retains its current size but is centered around a specified point.
Input | ||
Name | Type | Description |
center | Point | The location of the new center point of the rectangle. |
Output | ||
Name | Type | Description |
rect | Rect | On input, the size and location of a rectangle. On output, a rectangle of the same size but with a different center point. |
None.