Android Graphics Utilities / it.czerwinski.android.graphics / android.graphics.RectF / setCircle

setCircle

fun RectF.setCircle(cx: Float, cy: Float, radius: Float): Unit

Copies the coordinates from the circle defined by its center and radius.

Parameters

cx - The x-coordinate of the center of the circle.

cy - The x-coordinate of the center of the circle.

radius - The radius of the circle.

Receiver The rectangle.