core-ktx / androidx.graphics / android.graphics.Rect / or

or

inline infix fun Rect.or(r: Rect): Rect

Returns the intersection of two rectangles as a new rectangle. If the rectangles do not intersect, returns a copy of the left hand side rectangle.