java.lang.Object
org.jhotdraw8.geom.intersect.IntersectLinePolygon
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectLinePolygonEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull List<Point2D.Double> points) Computes the intersection between a line and a polygon.
-
Method Details
-
intersectLinePolygonEx
public static @NonNull IntersectionResultEx intersectLinePolygonEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull List<Point2D.Double> points) Computes the intersection between a line and a polygon.The intersection will contain the parameters 't1' of the line in range [0,1].
- Parameters:
a0- point 0 of the linea1- point 1 of the linepoints- the points of the polygon- Returns:
- computed intersection
-