Top Description Methods
org.apache.commons.math3.geometry.hull

public Interface ConvexHull<S extends Space, P extends Point<S>>

extends Serializable
Known Direct Implementers
org.apache.commons.math3.geometry.euclidean.twod.hull.ConvexHull2D
Type Parameters
<S>
Space type.
<P>
Point type.
Imports
java.io.Serializable, org.apache.commons.math3.exception.InsufficientDataException, org.apache.commons.math3.geometry.Point, .Space, org.apache.commons.math3.geometry.partitioning.Region

This class represents a convex hull.
Since
3.3

Method Summary

Modifier and TypeMethod and Description
public Region<S>

Returns:

the region enclosed by the convex hull
createRegion
()

Returns a new region that is enclosed by the convex hull.

public P[]

Returns:

vertices of the convex hull
getVertices
()

Get the vertices of the convex hull.

Method Detail

createRegionback to summary
public Region<S> createRegion() throws InsufficientDataException

Returns a new region that is enclosed by the convex hull.

Returns:Region<S>

the region enclosed by the convex hull

Exceptions
InsufficientDataException:
if the number of vertices is not enough to build a region in the respective space
getVerticesback to summary
public P[] getVertices()

Get the vertices of the convex hull.

Returns:P[]

vertices of the convex hull