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

setIntersect

open fun setIntersect(a: RelativeRectFast!, b: RelativeRectFast!): Boolean

If rectangles a and b intersect, return true and set this rectangle to that intersection, otherwise return false and do not change this rectangle. No check is performed to see if either rectangle is empty. To just test for intersection, use intersects()

Parameters

a - RelativeRectFast!: The first rectangle being intersected with

b - RelativeRectFast!: The second rectangle being intersected with

Return
Boolean: true iff the two specified rectangles intersect. If they do, set this rectangle to that intersection. If they do not, return false and do not change this rectangle.