Class IntersectCubicCurvePathIterator

java.lang.Object
org.jhotdraw8.geom.intersect.IntersectCubicCurvePathIterator

public class IntersectCubicCurvePathIterator extends Object
  • Method Details

    • intersectCubicCurvePathIteratorEx

      public static IntersectionResultEx intersectCubicCurvePathIteratorEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, PathIterator pit)
      Intersects the given quadratic Bézier curve with the given path iterator.

      This method can produce the following IntersectionStatus codes:

      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 0
      a0y - the y-coordinate of control point 0
      a1x - the x-coordinate of control point 1
      a1y - the y-coordinate of control point 1
      a2x - the x-coordinate of control point 2
      a2y - the y-coordinate of control point 2
      a3x - the x-coordinate of control point 3
      a3y - the y-coordinate of control point 3
      pit - the path iterator
      Returns:
      the intersection result