Class IntersectPolygonPolygon

java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPolygonPolygon

public class IntersectPolygonPolygon extends Object
  • Method Details

    • intersectPolygonPolygonEx

      public static IntersectionResultEx intersectPolygonPolygonEx(List<Point2D.Double> points1, List<Point2D.Double> points2)
      Computes the intersection between two polygons.

      The polygons must be closed. That is: the first and the last point of each polygon must be equal.

      Parameters:
      points1 - the points of the first polygon
      points2 - the points of the second polygon
      Returns:
      computed intersection