Class IntersectRayCubicCurve

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

public class IntersectRayCubicCurve extends Object
  • Method Details

    • intersectRayCubicCurve

      public static @NonNull IntersectionResult intersectRayCubicCurve(double a0x, double a0y, double a1x, double a1y, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y, double epsilon)
      Computes the intersection between cubic bezier curve 'p' and the line 'a'.
      Parameters:
      a0x - point 1 of 'a'
      a0y - point 1 of 'a'
      a1x - point 2 of 'a'
      a1y - point 2 of 'a'
      p0x - control point P0 of 'p'
      p0y - control point P0 of 'p'
      p1x - control point P1 of 'p'
      p1y - control point P1 of 'p'
      p2x - control point P2 of 'p'
      p2y - control point P2 of 'p'
      p3x - control point P3 of 'p'
      p3y - control point P3 of 'p'
      Returns:
      the computed intersection
    • intersectRayCubicCurve

      public static @NonNull IntersectionResult intersectRayCubicCurve(@NonNull Point2D ao, @NonNull Point2D ad, double maxT, @NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D p3, double epsilon)
      Computes the intersection between cubic bezier curve 'p' and the line 'a'.
      Parameters:
      ao - origin of ray 'a'
      ad - direction of ray 'a'
      p0 - control point P0 of 'p'
      p1 - control point P1 of 'p'
      p2 - control point P2 of 'p'
      p3 - control point P3 of 'p'
      epsilon -
      Returns:
      the computed intersection
    • intersectRayCubicCurveEx

      public static IntersectionResultEx intersectRayCubicCurveEx(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y, double epsilon)
    • intersectRayCubicCurveEx

      public static IntersectionResultEx intersectRayCubicCurveEx(double aox, double aoy, double adx, double ady, double maxT, double b0x, double b0y, double b1x, double b1y, double b2x, double b2y, double b3x, double b3y)