java.lang.Object
org.jhotdraw8.geom.intersect.IntersectQuadCurvePathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectQuadCurvePathIteratorEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, PathIterator pit) Intersects the given quadratic Bézier curve with the given path iterator.
-
Method Details
-
intersectQuadCurvePathIteratorEx
public static IntersectionResultEx intersectQuadCurvePathIteratorEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, PathIterator pit) Intersects the given quadratic Bézier curve with the given path iterator.This method can produce the following
IntersectionStatuscodes:IntersectionStatus.INTERSECTION- The quadratic Bézier curve intersects with a segment of the path within the given tolerance radius.
IntersectionStatus.NO_INTERSECTION_INSIDE- The quadratic Bézier curve lies inside the path.
IntersectionStatus.NO_INTERSECTION_OUTSIDE- The quadratic Bézier curve lies outside the path.
- Parameters:
a0x- the x-coordinate of control point 0a0y- the y-coordinate of control point 0a1x- the x-coordinate of control point 1a1y- the y-coordinate of control point 1a2x- the x-coordinate of control point 2a2y- the y-coordinate of control point 2pit- the path iterator- Returns:
- the intersection result
-