Package georegression.fitting.polygon
Class ConvexHullAndrewMonotone_F64
java.lang.Object
georegression.fitting.polygon.ConvexHullAndrewMonotone_F64
- All Implemented Interfaces:
FitConvexHull_F64
Computes the convex hull of a set of points using Andrew's monotone chain algorithm. O(n log n) for sort and
O(N) for convex hull computation, where N is number of input points.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
process
(FastAccess<Point2D_F64> points, Polygon2D_F64 output) Computes the convex hull.
-
Constructor Details
-
ConvexHullAndrewMonotone_F64
public ConvexHullAndrewMonotone_F64()
-
-
Method Details
-
process
Computes the convex hull. The output will be in counter-clockwise order.- Specified by:
process
in interfaceFitConvexHull_F64
- Parameters:
points
- List of input points. The list will be modified by sortingoutput
- (Output) Where the complex hull is written to.
-