The x-coordinate of the first end point of the line to check for intersection.
y1
The y-coordinate of the first end point of the line to check for intersection.
x2
The x-coordinate of the second end point of the line to check for intersection.
y2
The y-coordinate of the second end point of the line to check for intersection.
Return Value
True if the rectangle intersects the line; otherwise, false.
Remarks
This is a quick method to check if a vertical or horizontal line intersects a rectangle. If the line is not perpendicular or horizontal, the result will be unpredictable.