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

component3

inline operator fun RectF.component3(): Float

Returns "right", the third component of the rectangle.

This method allows to use destructuring declarations when working with rectangles, for example:

val (left, top, right, bottom) = myRectangle