|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object math.geom2d.polygon.convhull.GrahamScan2D
public class GrahamScan2D
Computation of the convex hull using Graham scan algorithm. Note that in its current implementation, this algorithms fails when some points are colinear.
Constructor Summary | |
---|---|
GrahamScan2D()
Creates a new Convex hull calculator. |
Method Summary | |
---|---|
Polygon2D |
convexHull(java.util.Collection<? extends Point2D> points)
Computes the convex hull of the given collection of points. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrahamScan2D()
Method Detail |
---|
public Polygon2D convexHull(java.util.Collection<? extends Point2D> points)
ConvexHull2D
convexHull
in interface ConvexHull2D
points
- a set of points
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |