void RectCenter (Rect rect, Point *center);
Calculates the location of the center point of a rectangle. For even heights (or widths), the center point is rounded toward the top (or left).
Input | ||
Name | Type | Description |
rect | Rect | The location and size of a rectangle. |
Output | ||
Name | Type | Description |
center | Point | A Point structure that specifies the location of the center of the rectangle. |
None.