java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPolygonPolygon
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectPolygonPolygonEx(@NonNull List<Point2D.Double> points1, @NonNull List<Point2D.Double> points2) Computes the intersection between two polygons.
-
Method Details
-
intersectPolygonPolygonEx
public static @NonNull IntersectionResultEx intersectPolygonPolygonEx(@NonNull List<Point2D.Double> points1, @NonNull 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 polygonpoints2- the points of the second polygon- Returns:
- computed intersection
-