java.lang.Object
org.jhotdraw8.geom.intersect.IntersectShapeShape
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectShapeShapeEx(Shape a, Shape b) Intersects the given shapes 'a' and 'b'.
-
Method Details
-
intersectShapeShapeEx
Intersects the given shapes 'a' and 'b'.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- A segment of shape 'a' intersects with a segment of shape 'b' within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION_COINCIDENT- All segments of shape 'a' coincide with all segments of shape 'b'.
IntersectionStatus.NO_INTERSECTION_INSIDE- Shape 'a' lies inside shape 'b'.
IntersectionStatus.NO_INTERSECTION_OUTSIDE- Shape 'a' lies outside shape 'b'.
IntersectionStatus.NO_INTERSECTION_INSIDE_AND_OUTSIDE- Shape 'a' lies inside and outside shape 'b'.
IntersectionStatus.NO_INTERSECTION- Shape 'a' does not intersect with shape 'b' because 'a' or 'b' (or both) is (are) empty.
FIXME this implementation does not work yet
- Parameters:
a- shape 'a'b- shape 'b'- Returns:
- the intersection result
-