# RectSetFromPoints

void RectSetFromPoints (Rect *rect, Point point1, Point point2);

## Purpose

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.

## Parameters

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.

## Return Value

None.