|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gicentre.utils.geom.ConvexHull
public class ConvexHull
Class for representing and building a convex hull around a set of point values.
Constructor Summary | |
---|---|
ConvexHull(java.util.Collection<processing.core.PVector> points)
Creates a convex hull from the given collection of point values. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConvexHull(java.util.Collection<processing.core.PVector> points)
points
- Points around which the convex hull is created.Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |