java.lang.Object
org.jhotdraw8.geom.intersect.IntersectRayPathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, @NonNull PathIterator pit) static @NonNull IntersectionResultExintersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, @NonNull PathIterator pit, double maxT) Intersects the given ray with the given path iterator.static @NonNull IntersectionResultExintersectRayPathIteratorEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull PathIterator pit) static @NonNull IntersectionResultExintersectRayPathIteratorEx(@NonNull Point2D ao, @NonNull Point2D ad, @NonNull PathIterator pit, double maxT)
-
Method Details
-
intersectRayPathIteratorEx
public static @NonNull IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, @NonNull PathIterator pit) -
intersectRayPathIteratorEx
public static @NonNull IntersectionResultEx intersectRayPathIteratorEx(@NonNull Point2D ao, @NonNull Point2D ad, @NonNull PathIterator pit, double maxT) -
intersectRayPathIteratorEx
public static @NonNull IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, @NonNull PathIterator pit, double maxT) Intersects the given ray with the given path iterator.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- The ray intersects with a segment of the path within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION- The ray does not intersect with a segment of the path.
- Parameters:
aox- the x-coordinate of the origin of the rayaoy- the y-coordinate of the origin of the rayadx- the x-coordinate of the direction of the rayady- the y-coordinate of the direction of the raypit- the path iteratormaxT- the maximal time of the line (1 = entire line)- Returns:
- the intersection result
-
intersectRayPathIteratorEx
public static @NonNull IntersectionResultEx intersectRayPathIteratorEx(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull PathIterator pit)
-