void RectSetFromPoints (Rect *rect, Point point1, Point point2);
Sets the values in a Rect structure so that it defines the smallest rectangle that encloses the two points you specify. Each point is located on a corner of the frame of the rectangle.
Input | ||
Name | Type | Description |
point1 | Point | One of the two points that defines the rectangle. |
point2 | Point | One of the two points that defines the rectangle. |
Output | ||
Name | Type | Description |
rect | Rect | Rect structure that is set to enclose the specified points. |
None.