Package georegression.fitting.polygon
Class FitPolygon2D_F32
java.lang.Object
georegression.fitting.polygon.FitPolygon2D_F32
@Generated("georegression.fitting.polygon.FitPolygon2D_F64")
public class FitPolygon2D_F32
extends Object
Functions related to fitting polygons to different inputs
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic Polygon2D_F32convexHull(List<Point2D_F32> points, @Nullable Polygon2D_F32 output) Finds the convex hull of the set of points using an algorithm with a runtime of O( n log n ).static Rectangle2D_F32rectangleAabb(List<Point2D_F32> points, @Nullable Rectangle2D_F32 rectangle) Finds the smallest Axis Aligned Bounding Box (AABB) for the set of set of points.
- 
Constructor Details- 
FitPolygon2D_F32public FitPolygon2D_F32()
 
- 
- 
Method Details- 
rectangleAabbpublic static Rectangle2D_F32 rectangleAabb(List<Point2D_F32> points, @Nullable @Nullable Rectangle2D_F32 rectangle) Finds the smallest Axis Aligned Bounding Box (AABB) for the set of set of points. Both the lower and upper extends are inclusive. x0 ≤ p.x ≤ x1.- Parameters:
- points- (Input) set of points
- rectangle- (Output) Storage for the AABB. Nullable
- Returns:
- The rectangular AABB
 
- 
convexHullpublic static Polygon2D_F32 convexHull(List<Point2D_F32> points, @Nullable @Nullable Polygon2D_F32 output) Finds the convex hull of the set of points using an algorithm with a runtime of O( n log n ).- Parameters:
- points- (Input) Points
- output- (Output) Storage for output convex hull. Nullable.
- Returns:
- The convex hull
- See Also:
 
 
-