void RectUnion (Rect rect1, Rect rect2, Rect *unionRect);
Calculates the smallest rectangle that encloses the two rectangles you specify.
Input | ||
Name | Type | Description |
rect1 | Rect | The size and location of a rectangle. |
rect2 | Rect | The size and location of a rectangle. |
Output | ||
Name | Type | Description |
unionRect | Rect | Rect structure that specifies the smallest rectangle that encloses both rect1 and rect2. |
None.