public class ConvexHull
extends java.lang.Object
Constructor and Description |
---|
ConvexHull(java.util.Collection<processing.core.PVector> points)
Creates a convex hull from the given collection of point values.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(processing.core.PVector point)
Adds a given point to the collection from which the hull is to be constructed.
|
java.util.ArrayList<processing.core.PVector> |
getHull()
Provides the convex hull that surrounds the collection of points stored in this object.
|
static java.util.ArrayList<processing.core.PVector> |
getHull(java.util.Collection<processing.core.PVector> points)
Calculates the convex hull from the given collection of point values.
|
boolean |
removePoint(processing.core.PVector point)
Removes a given point from the collection from which the hull is to be constructed.
|
public ConvexHull(java.util.Collection<processing.core.PVector> points)
points
- Points around which the convex hull is created.public static java.util.ArrayList<processing.core.PVector> getHull(java.util.Collection<processing.core.PVector> points)
points
- Points around which the convex hull is created.public java.util.ArrayList<processing.core.PVector> getHull()
public void addPoint(processing.core.PVector point)
point
- Point to add.public boolean removePoint(processing.core.PVector point)
point
- Point to remove.