Rect.fromPoint Method

Creates a rectangle using two points.
 
 
Static This method is static.

Parameters

x1

Type: Number
The X coordinate of the first point.
y1

Type: Number
The Y coordinate of the first point.
x2

Type: Number
The X coordinate of the second point.
y2

Type: Number
The Y coordinate of the second point.

Return Value


Type: Rect
A rectangle representing the area containing the two points.