Module org.jhotdraw8.geom
Package org.jhotdraw8.geom.intersect
Class IntersectCubicCurvePathIterator
java.lang.Object
org.jhotdraw8.geom.intersect.IntersectCubicCurvePathIterator
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultExintersectCubicCurvePathIteratorEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, @NonNull PathIterator pit) Intersects the given quadratic Bézier curve with the given path iterator.
-
Method Details
-
intersectCubicCurvePathIteratorEx
public static @NonNull IntersectionResultEx intersectCubicCurvePathIteratorEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, @NonNull 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 2a3x- the x-coordinate of control point 3a3y- the y-coordinate of control point 3pit- the path iterator- Returns:
- the intersection result
-