Class IntersectRayQuadCurve

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

public class IntersectRayQuadCurve extends Object
  • Method Details

    • intersectRayQuadCurve

      public static @NonNull IntersectionResult intersectRayQuadCurve(@NonNull Point2D ao, @NonNull Point2D ad, double maxT, @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:
      ao - origin of ray 'a'
      ad - direction of ray 'a'
      maxT - maximal parameter value for ray 'a'
      p0 - control point P0 of 'p'
      p1 - control point P1 of 'p'
      p2 - control point P2 of 'p'
      Returns:
      the computed intersection
    • intersectRayQuadCurve

      public static @NonNull IntersectionResult intersectRayQuadCurve(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y)
    • intersectRayQuadCurve

      public static @NonNull IntersectionResult intersectRayQuadCurve(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double epsilon)
    • intersectRayQuadCurveEx

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

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