Companion

object Companion

Functions

Link copied to clipboard
Link copied to clipboard
fun hole(radius: Double): Circle

Because circles are approximated using regular polygons, an interior of a circle may be smaller than you may expect. This method makes creates a polygon which can completely contain the circle of the given radius.

fun hole(radius: Double, sides: Int): Circle