Package georegression.fitting.polygon
Class ConvexHullAndrewMonotone_F32
java.lang.Object
georegression.fitting.polygon.ConvexHullAndrewMonotone_F32
- All Implemented Interfaces:
FitConvexHull_F32
@Generated("georegression.fitting.polygon.ConvexHullAndrewMonotone_F64")
public class ConvexHullAndrewMonotone_F32
extends Object
implements FitConvexHull_F32
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_F32> points, Polygon2D_F32 output) Computes the convex hull.
-
Constructor Details
-
ConvexHullAndrewMonotone_F32
public ConvexHullAndrewMonotone_F32()
-
-
Method Details
-
process
Computes the convex hull. The output will be in counter-clockwise order.- Specified by:
process
in interfaceFitConvexHull_F32
- Parameters:
points
- List of input points. The list will be modified by sortingoutput
- (Output) Where the complex hull is written to.
-