|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectmath.geom2d.polygon.convhull.JarvisMarch2D
public class JarvisMarch2D
Computes the convex hull of a set of points as a single Polygon2D by gift wrapping algorithm, also know as Jarvis March.
The complexity of the algorithm is of O(n * h), where n is the number of input points and h the number of vertices of the convex hull. This low complexity makes it the best choice algorithm for computing convex hull.
| Constructor Summary | |
|---|---|
JarvisMarch2D()
Creates a new Convex hull calculator. |
|
| Method Summary | |
|---|---|
Polygon2D |
convexHull(java.util.Collection<? extends Point2D> points)
Computes the convex hull of a set of points as a single Polygon2D. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JarvisMarch2D()
| Method Detail |
|---|
public Polygon2D convexHull(java.util.Collection<? extends Point2D> points)
convexHull in interface ConvexHull2Dpoints - a set of points
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||