toRect

inline fun RectF.toRect(): Rect(source)

Returns a Rect representation of this rectangle. The resulting rect will be sized such that this rect can fit within it.