Package org.hipparchus.geometry.hull
Interface ConvexHull<S extends Space,P extends Point<S>>
- Type Parameters:
S
- Space type.P
- Point type.
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
ConvexHull2D
This class represents a convex hull.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a new region that is enclosed by the convex hull.P[]
Get the vertices of the convex hull.
-
Method Details
-
getVertices
P[] getVertices()Get the vertices of the convex hull.- Returns:
- vertices of the convex hull
-
createRegion
Returns a new region that is enclosed by the convex hull.- Returns:
- the region enclosed by the convex hull
- Throws:
MathIllegalArgumentException
- if the number of vertices is not enough to build a region in the respective space
-