intersects

fun intersects(left: Float, top: Float, right: Float, bottom: Float): Boolean

Returns true if this rectangle intersects the specified rectangle. In no event is this rectangle modified. No check is performed to see if either rectangle is empty. To record the intersection, use intersect() or setIntersect().

Return

true iff the specified rectangle intersects this rectangle. In no event is this rectangle modified.

Parameters

left

The left side of the rectangle being tested for intersection

top

The top of the rectangle being tested for intersection

right

The right side of the rectangle being tested for intersection

bottom

The bottom of the rectangle being tested for intersection