Class IntersectLinePolygon

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

public class IntersectLinePolygon extends Object
  • 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 line
      a1 - point 1 of the line
      points - the points of the polygon
      Returns:
      computed intersection