public class ConvexHull2D extends Object implements ConvexHull<Euclidean2D,Vector2D>, Serializable
| Constructor and Description | 
|---|
| ConvexHull2D(Vector2D[] vertices,
            double tolerance)Simple constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| Region<Euclidean2D> | createRegion()Returns a new region that is enclosed by the convex hull. | 
| Segment[] | getLineSegments()Get the line segments of the convex hull, ordered. | 
| Vector2D[] | getVertices()Get the vertices of the convex hull. | 
public ConvexHull2D(Vector2D[] vertices, double tolerance) throws MathIllegalArgumentException
vertices - the vertices of the convex hull, must be orderedtolerance - tolerance below which points are considered identicalMathIllegalArgumentException - if the vertices do not form a convex hullpublic Vector2D[] getVertices()
getVertices in interface ConvexHull<Euclidean2D,Vector2D>public Segment[] getLineSegments()
public Region<Euclidean2D> createRegion() throws MathIllegalArgumentException
createRegion in interface ConvexHull<Euclidean2D,Vector2D>MathIllegalArgumentException - if the number of vertices is not enough to
 build a region in the respective spaceCopyright © 2016–2020 Hipparchus.org. All rights reserved.