circleToPolygon

fun circleToPolygon(segments: Int, centerLat: Double, centerLon: Double, radius: Double): Polygon

Converts a circle to a polygon "circle".

Return

Polygon object.

Parameters

segments

Number of segments the polygon should have.

centerLat

Latitude of the center of the circle.

centerLon

Longitude of the center of the circle.

radius

Radius of the circle.