geo.circlePolygon( $circle as cts.circle, $arc-tolerance as Number, [$options as String] ) as cts.region
Construct a polygon approximating a circle.
|$circle||A cts circle that defines the circle to be approximated.|
How far the approximation can be from the actual circle, specified
in the same units as the |
Options with which to customize this operation. The following options
tolerance, then they are considered to be the same point. The
arc-toleranceparameter specifies the allowable error in the polygon approximation. That is, the resulting polygon will differ from the provided circle by at most
arc-tolerance parameter value should be greater than
the tolerance, and both
should be expressed in the same units. Use the
to override the default tolerance value.
geo.circlePolygon(cts.circle(7,cts.point(10,20)),4, ["tolerance=1"]); // => A cts.region with the following coordinates: // 10.10185,20 10.050913,20.088997 9.9490623,20.08897 9.8981495,20 // 9.9490623,19.91103 10.050913,19.911001 10.10185,20