MCPcopy Index your code
hub / github.com/plotly/plotly.js / convexHull

Function convexHull

stackgl_modules/index.js:9748–9764  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

9746module.exports = convexHull
9747
9748function convexHull(points) {
9749 var n = points.length
9750 if(n === 0) {
9751 return []
9752 } else if(n === 1) {
9753 return [[0]]
9754 }
9755 var d = points[0].length
9756 if(d === 0) {
9757 return []
9758 } else if(d === 1) {
9759 return convexHull1d(points)
9760 } else if(d === 2) {
9761 return convexHull2d(points)
9762 }
9763 return convexHullnd(points, d)
9764}
9765
9766/***/ }),
9767

Callers 1

convert.jsFile · 0.85

Calls 1

convexHull1dFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…