circle

fun circle(center: Position, radius: Length, steps: Int = 64): Polygon(source)

Takes a Position and calculates the circle polygon given a radius Length and steps for precision.

Parameters

center

center point of circle

radius

radius of the circle

steps

the number of steps must be at least four. Default is 64


fun circle(center: Point, radius: Length, steps: Int = 64): Polygon(source)

Takes a Point and calculates the circle polygon given a radius Length and steps for precision.

Parameters

center

center point of circle

radius

radius of the circle

steps

the number of steps must be at least four. Default is 64