Class IntersectQuadCurveRay

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

public class IntersectQuadCurveRay extends Object
  • Method Details

    • intersectQuadCurveRay

      public static @NonNull IntersectionResult intersectQuadCurveRay(@NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D ao, @NonNull Point2D ad, double maxT)
      Computes the intersection between quadratic bezier curve 'p' and the line 'a'.

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

      Parameters:
      p0 - control point P0 of 'p'
      p1 - control point P1 of 'p'
      p2 - control point P2 of 'p'
      ao - point 0 of 'a'
      ad - point 1 of 'a'
      Returns:
      the computed intersection
    • intersectQuadCurveRay

      public static IntersectionResult intersectQuadCurveRay(@NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D ao, @NonNull Point2D ad, double maxT, double epsilon)
      Parameters:
      p0 -
      p1 -
      p2 -
      ao -
      ad -
      maxT -
      epsilon -
      Returns:
    • intersectQuadCurveRay

      public static @NonNull IntersectionResult intersectQuadCurveRay(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2, double box, double boy, double bdx, double bdy, double maxT)
    • intersectQuadCurveRay

      public static @NonNull IntersectionResult intersectQuadCurveRay(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2, double box, double boy, double bdx, double bdy, double maxT, double epsilon)
    • intersectQuadCurveLineEx

      public static IntersectionResultEx intersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double aox, double aoy, double adx, double ady)
    • intersectQuadCurveLineEx

      public static IntersectionResultEx intersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double aox, double aoy, double adx, double ady, double epsilon)