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 Details

    • FitPolygon2D_F32

      public FitPolygon2D_F32()
  • Method Details

    • rectangleAabb

      public 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
    • convexHull

      public 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: