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

or

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

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.