Class MinimumAreaRectangle

java.lang.Object
com.solibri.geometry.algorithms.MinimumAreaRectangle

public final class MinimumAreaRectangle extends Object
Provides a method for computing the oriented minimum area rectangle of a collection of points.
Since:
9.10.2
  • Method Details

    • of

      public static MRectangle2d of(Collection<? extends Vector2d> points)
      Returns the minimum area oriented rectangle that surrounds the given collection of points. The result is not guaranteed to be optimal.
      Parameters:
      points - the points for which the rectangle is computed
      Returns:
      the minimum area oriented rectangle that surrounds the given collection of points
      Since:
      9.10.2