java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPathIteratorShape
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectPathIteratorShapeEx(@NonNull PathIterator pit, @NonNull Shape shape) Intersects the given path iterator with the given shape.
-
Method Details
-
intersectPathIteratorShapeEx
public static @NonNull IntersectionResultEx intersectPathIteratorShapeEx(@NonNull PathIterator pit, @NonNull Shape shape) Intersects the given path iterator with the given shape.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- The path iterator intersects with a segment of the shape within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION_INSIDE- The path iterator lies inside the shape.
IntersectionStatus.NO_INTERSECTION_OUTSIDE- The path iterator lies outside the shape.
IntersectionStatus.NO_INTERSECTION_INSIDE_AND_OUTSIDE- The path iterator lies inside and outside the shape.
IntersectionStatus.NO_INTERSECTION- The path iterator does not intersect with the shape because either of the path iterator or the shape is empty or because the path and the shape are coincident.
- Parameters:
pit- the path iteratorshape- the shape- Returns:
- the intersection result
-