new ConvexHull()
Utility class used to compute a convex hull. Based on algorithm from Chapter 1 in this book.
Other links:
- Source:
Methods
(static) compute(p, h) → {Array}
Parameters:
Name | Type | Description |
---|---|---|
p |
Array | array of SQR.V2 or any objects that have a |
h |
Array | the array to store the result in. If omitted, new one is created. |
- Source:
Returns:
array of SQR.V2 containing ordered points that make the convexhull.
- Type
- Array