Class IntersectLineQuadCurve

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

public class IntersectLineQuadCurve extends Object
  • Method Details

    • intersectLineQuadCurve

      public static @NonNull IntersectionResult intersectLineQuadCurve(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2)
      Computes the intersection between quadratic bezier curve 'p' and the line 'a'.

      The intersection will contain the parameters 't' of curve 'a' in range [0,1].

      Parameters:
      a0 - point 0 of 'a'
      a1 - point 0 of 'a'
      p0 - control point P0 of 'p'
      p1 - control point P1 of 'p'
      p2 - control point P2 of 'p'
      Returns:
      the computed intersection
    • intersectLineQuadCurve

      public static @NonNull IntersectionResult intersectLineQuadCurve(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y)
    • intersectLineQuadCurve

      public static @NonNull IntersectionResult intersectLineQuadCurve(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double epsilon)
      Parameters:
      a0x -
      a0y -
      a1x -
      a1y -
      p0x -
      p0y -
      p1x -
      p1y -
      p2x -
      p2y -
      epsilon -
      Returns:
    • intersectLineQuadCurveEx

      public static IntersectionResultEx intersectLineQuadCurveEx(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y)
    • intersectLineQuadCurveEx

      public static IntersectionResultEx intersectLineQuadCurveEx(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double epsilon)
    • intersectQuadCurveLineEx

      public static IntersectionResultEx intersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double a0x, double a0y, double a1x, double a1y)
    • intersectQuadCurveLineEx

      public static IntersectionResultEx intersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double a0x, double a0y, double a1x, double a1y, double epsilon)