AMD:
require(["esri/geometry/operators/convexHullOperator"], (convexHullOperator) => { /* code goes here */ });
ESM:
import * as convexHullOperator from "@arcgis/core/geometry/operators/convexHullOperator.js";
Object:
esri/geometry/operators/convexHullOperator
Since: ArcGIS Maps SDK for JavaScript 4.31
beta
Calculates the convex hull of 2D geometries. A convex hull is the smallest convex polygon that encloses a group of geometries or vertices. The hull is typically a polygon but can also be a polyline or a point in degenerate cases.
Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Calculates the convex hull geometry. | convexHullOperator | ||
Calculates the convex hull. | convexHullOperator | ||
Checks if a geometry is convex. | convexHullOperator |
Method Details
-
Calculates the convex hull geometry.
Parametergeometry GeometryThe input geometry.
ReturnsExample// Create a convex hull around a polygon. const convexHull = convexHullOperator.execute(polygon);
-
Calculates the convex hull.
ParametersReturns