public class Polygons2D extends Object
Modifier and Type | Method and Description |
---|---|
static ArrayList<Point> |
convexHull_int(ArrayList<Point> points)
Uses the gift wrap algorithm with integer values to find the convex hull
of a list of vertices, and returns it as an ordered list of points.
|
static Polygon2D |
convexHull(ArrayList<? extends Point2D> points)
Uses the gift wrap algorithm with floating point values to find the
convex hull and returns it as a list of points.
|
public static final Polygon2D convexHull(ArrayList<? extends Point2D> points)
points
- a set of points coordinates in the 2D spacepublic static final ArrayList<Point> convexHull_int(ArrayList<Point> points)
points
- a set of points with integer coordinates in the 2D spaceCopyright © 2014–2023 INRA-IJPB Modeling and Digital Imaging lab. All rights reserved.