java.lang.Object
org.jhotdraw8.geom.intersect.IntersectCubicCurveLine
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultintersectCubicCurveLine(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y, double epsilon) static @NonNull IntersectionResultintersectCubicCurveLine(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D a2, @NonNull Point2D a3, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between cubic bezier curve 'p' and the line 'a'.static IntersectionResultintersectCubicCurveLine(@NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D p3, @NonNull Point2D a0, @NonNull Point2D a1, double epsilon) static IntersectionResultExintersectCubicCurveLineEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y) static IntersectionResultExintersectCubicCurveLineEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y, double epsilon) static @NonNull IntersectionResultintersectLineCubicCurve(double a0x, double a0y, double a1x, double a1y, 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'.static @NonNull IntersectionResultintersectLineCubicCurve(@NonNull Point2D a0, @NonNull Point2D a1, @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'.static IntersectionResultExintersectLineCubicCurveEx(double a0x, double a0y, double a1x, double a1y, double lastx, double lasty, double v, double v1, double v2, double v3, double x, double y) static IntersectionResultExintersectLineCubicCurveEx(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y, double epsilon)
-
Method Details
-
intersectCubicCurveLine
public static @NonNull IntersectionResult intersectCubicCurveLine(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y, double epsilon) -
intersectCubicCurveLine
public static @NonNull IntersectionResult intersectCubicCurveLine(@NonNull Point2D a0, @NonNull Point2D a1, @NonNull Point2D a2, @NonNull Point2D a3, @NonNull Point2D b0, @NonNull Point2D b1) Computes the intersection between cubic bezier curve 'p' and the line 'a'.- Parameters:
a0- control point P0 of 'p'a1- control point P1 of 'p'a2- control point P2 of 'p'a3- control point P3 of 'p'b0- point 0 of 'a'b1- point 1 of 'a'- Returns:
- the computed intersection
-
intersectCubicCurveLine
public static IntersectionResult intersectCubicCurveLine(@NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D p3, @NonNull Point2D a0, @NonNull Point2D a1, double epsilon) - Parameters:
p0-p1-p2-p3-a0-a1-epsilon-- Returns:
-
intersectLineCubicCurve
public static @NonNull IntersectionResult intersectLineCubicCurve(double a0x, double a0y, double a1x, double a1y, 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
-
intersectLineCubicCurve
public static @NonNull IntersectionResult intersectLineCubicCurve(@NonNull Point2D a0, @NonNull Point2D a1, @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:
a0- point 1 of 'a'a1- point 2 of '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
-
intersectLineCubicCurveEx
public static IntersectionResultEx intersectLineCubicCurveEx(double a0x, double a0y, double a1x, double a1y, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double p3x, double p3y, double epsilon) -
intersectLineCubicCurveEx
public static IntersectionResultEx intersectLineCubicCurveEx(double a0x, double a0y, double a1x, double a1y, double lastx, double lasty, double v, double v1, double v2, double v3, double x, double y) -
intersectCubicCurveLineEx
public static IntersectionResultEx intersectCubicCurveLineEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y, double epsilon) -
intersectCubicCurveLineEx
public static IntersectionResultEx intersectCubicCurveLineEx(double a0x, double a0y, double a1x, double a1y, double a2x, double a2y, double a3x, double a3y, double b0x, double b0y, double b1x, double b1y)
-