intersects

Returns true iff the two specified rectangles intersect. In no event are either of the rectangles modified. To record the intersection, use intersect() or setIntersect().

Return

true iff the two specified rectangles intersect. In no event are either of the rectangles modified.

Parameters

a

The first rectangle being tested for intersection

b

The second rectangle being tested for intersection

open fun intersects(a: RelativeRectFast, b: RelativeRectFast): 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

bottom

The bottom of the rectangle being tested for intersection

left

The left side of the rectangle being tested for intersection

right

The right side of the rectangle being tested for intersection

top

The top of the rectangle being tested for intersection

open fun intersects(left: Double, top: Double, right: Double, bottom: Double): Boolean