ly.img.android.pesdk.backend.model.chunk / RelativeRectFast / intersects

intersects

open fun intersects(left: Double, top: Double, right: Double, bottom: Double): 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().

Parameters

left - Double: The left side of the rectangle being tested for intersection

top - Double: The top of the rectangle being tested for intersection

right - Double: The right side of the rectangle being tested for intersection

bottom - Double: The bottom of the rectangle being tested for intersection

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

open static fun intersects(a: RelativeRectFast!, b: RelativeRectFast!): Boolean

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().

Parameters

a - RelativeRectFast!: The first rectangle being tested for intersection

b - RelativeRectFast!: The second rectangle being tested for intersection

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