Package georegression.fitting.polygon
Class FitPolygon2D_I32
java.lang.Object
georegression.fitting.polygon.FitPolygon2D_I32
Functions related to fitting polygons to different inputs
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Rectangle2D_I32
rectangleAabb
(List<Point2D_I32> points, @Nullable Rectangle2D_I32 rectangle) Finds the smallest Axis Aligned Bounding Box (AABB) for the set of set of points.
-
Constructor Details
-
FitPolygon2D_I32
public FitPolygon2D_I32()
-
-
Method Details
-
rectangleAabb
public static Rectangle2D_I32 rectangleAabb(List<Point2D_I32> points, @Nullable @Nullable Rectangle2D_I32 rectangle) Finds the smallest Axis Aligned Bounding Box (AABB) for the set of set of points. The lower extent is inclusive and the upper extent is exclusive. x0 ≤ p.x < x1.- Parameters:
points
- (Input) set of pointsrectangle
- (Output) Storage for the AABB. Nullable- Returns:
- The rectangular AABB
-