java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPathIteratorPoint
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultintersectPathIteratorPoint(@NonNull PathIterator pit, double px, double py, double tolerance) Intersects the given path iterator with the given point.
-
Method Details
-
intersectPathIteratorPoint
public static @NonNull IntersectionResult intersectPathIteratorPoint(@NonNull PathIterator pit, double px, double py, double tolerance) Intersects the given path iterator with the given point.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- The point intersects with a segment of the path within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION_INSIDE-
The point lies inside a path segment. The segment returned
by
IntersectionPointEx.getSegmentB()points to the segment that closes the path segment withPathIterator.SEG_CLOSE. IntersectionStatus.NO_INTERSECTION_OUTSIDE- The point lies outside the path.
- Parameters:
pit- the path iteratorpx- the x-coordinate of the pointpy- the y-coordinate of the pointtolerance- radius around the point which counts as a hit.- Returns:
- the intersection
-