circle

fun circle(center: Point, radius: Double, steps: Int = 64, units: Units = Units.Kilometers): Polygon

Takes a Point and calculates the circle polygon given a radius in degrees, radians, miles, or kilometers; and steps for precision.

Parameters

center

center point of circle

radius

radius of the circle defined in units

steps

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

units

unit of radius, default is Units.Kilometers