java.lang.Object
org.jhotdraw8.geom.intersect.IntersectRayPathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, PathIterator pit) static IntersectionResultExintersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, PathIterator pit, double maxT) Intersects the given ray with the given path iterator.static IntersectionResultExintersectRayPathIteratorEx(Point2D a0, Point2D a1, PathIterator pit) static IntersectionResultExintersectRayPathIteratorEx(Point2D ao, Point2D ad, PathIterator pit, double maxT)
-
Method Details
-
intersectRayPathIteratorEx
public static IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, PathIterator pit) -
intersectRayPathIteratorEx
public static IntersectionResultEx intersectRayPathIteratorEx(Point2D ao, Point2D ad, PathIterator pit, double maxT) -
intersectRayPathIteratorEx
public static IntersectionResultEx intersectRayPathIteratorEx(double aox, double aoy, double adx, double ady, 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 IntersectionResultEx intersectRayPathIteratorEx(Point2D a0, Point2D a1, PathIterator pit)
-