java.lang.Object
org.jhotdraw8.geom.intersect.IntersectLinePathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, PathIterator pit) static IntersectionResultExintersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, PathIterator pit, double maxT) Intersects the given line with the given path iterator.static IntersectionResultExintersectLinePathIteratorEx(Point2D a0, Point2D a1, PathIterator pit) static IntersectionResultExintersectLinePathIteratorEx(Point2D a0, Point2D a1, PathIterator pit, double maxT)
-
Method Details
-
intersectLinePathIteratorEx
public static IntersectionResultEx intersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, PathIterator pit) -
intersectLinePathIteratorEx
public static IntersectionResultEx intersectLinePathIteratorEx(Point2D a0, Point2D a1, PathIterator pit, double maxT) -
intersectLinePathIteratorEx
public static IntersectionResultEx intersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, PathIterator pit, double maxT) Intersects the given line with the given path iterator.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- The line intersects with a segment of the path within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION_INSIDE- The line lies inside the path.
IntersectionStatus.NO_INTERSECTION_OUTSIDE- The line lies outside the path.
- Parameters:
a0x- the x-coordinate of the start point of the linea0y- the y-coordinate of the start point of the linea1x- the x-coordinate of the end point of the linea1y- the y-coordinate of the end point of the linepit- the path iteratormaxT- the maximal time of the line (1 = entire line)- Returns:
- the intersection result
-
intersectLinePathIteratorEx
public static IntersectionResultEx intersectLinePathIteratorEx(Point2D a0, Point2D a1, PathIterator pit)
-