java.lang.Object
org.jhotdraw8.geom.intersect.IntersectLinePathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, @NonNull PathIterator pit) static @NonNull IntersectionResultExintersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, @NonNull PathIterator pit, double maxT) Intersects the given line with the given path iterator.static @NonNull IntersectionResultExstatic @NonNull IntersectionResultExintersectLinePathIteratorEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull PathIterator pit, double maxT)
-
Method Details
-
intersectLinePathIteratorEx
public static @NonNull IntersectionResultEx intersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, @NonNull PathIterator pit) -
intersectLinePathIteratorEx
public static @NonNull IntersectionResultEx intersectLinePathIteratorEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull PathIterator pit, double maxT) -
intersectLinePathIteratorEx
public static @NonNull IntersectionResultEx intersectLinePathIteratorEx(double a0x, double a0y, double a1x, double a1y, @NonNull 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 @NonNull IntersectionResultEx intersectLinePathIteratorEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull PathIterator pit)
-