Returns true if the given rectangle intersects the given segment.
Rectangle that represents the rectangle.
Point that represents the first point of the segment.
Point that represents the second point of the segment.
Returns true if the given rectangle intersects the given segment.