Constructor
left location
bottom location
rectangle width
rectangle height
Return a duplicate rectangle object
Returns true if point is within or on the border of the rectangle
point to test
precision to test
Returns a rectangle with coordinates rounded to precision
precision to test
Find the intersect of the line from the center of the rectangle to the point, with the rectangle border.
intersect
Find the intersect(s) between a line and rectangle
The center point of the rectangle
An object representing a rectangle.
Example