RectSetCenter

void RectSetCenter (Rect *rect, Point center);

Purpose

Sets the values of a Rect structure so that it retains its current size but is centered around a specified point.

Parameters

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.

Return Value

None.