AMD:
require(["esri/geometry/operators/minimumBoundingCircleOperator"], (minimumBoundingCircleOperator) => { /* code goes here */ });
ESM:
import * as minimumBoundingCircleOperator from "@arcgis/core/geometry/operators/minimumBoundingCircleOperator.js";
Object:
esri/geometry/operators/minimumBoundingCircleOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta
Create a minimum bounding circle for the input geometry. The output is a polygon with a single densified segment that is a minimum bounding circle. Implements the Welzl's algorithm using greedy heuristic with expected O(n) time complexity.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Performs the minimum bounding circle operation on the geometry. | minimumBoundingCircleOperator | ||
Performs the minimum bounding circle operation on the geometry set. | minimumBoundingCircleOperator |
Method Details
-
execute
execute(geometry){Polygon}
-
Performs the minimum bounding circle operation on the geometry.
Parametergeometry GeometryThe input geometry.
ReturnsType Description Polygon Returns the minimum bounding circle polygon. Example// Perform the minimum bounding circle operation const minimumBoundingCircle = minimumBoundingCircleOperator.execute(polygon);
-
Performs the minimum bounding circle operation on the geometry set.
ParametersReturns