Class IntersectCubicCurveRectangle

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

public class IntersectCubicCurveRectangle extends Object
  • Method Details

    • intersectCubicCurveRectangle

      public static IntersectionResult intersectCubicCurveRectangle(Point2D p0, Point2D p1, Point2D p2, Point2D p3, Point2D r0, Point2D r1)
      Computes the intersection between cubic bezier curve 'p' and the provided rectangle.
      Parameters:
      p0 - control point P0 of 'p'
      p1 - control point P1 of 'p'
      p2 - control point P2 of 'p'
      p3 - control point P3 of 'p'
      r0 - corner point 0 of the rectangle
      r1 - corner point 1 of the rectangle
      Returns:
      the computed intersection