java.lang.Object
org.jhotdraw8.geom.intersect.IntersectQuadCurveRay
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultExintersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double aox, double aoy, double adx, double ady) static IntersectionResultExintersectQuadCurveLineEx(double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double aox, double aoy, double adx, double ady, double epsilon) static @NonNull IntersectionResultintersectQuadCurveRay(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2, double box, double boy, double bdx, double bdy, double maxT) static @NonNull IntersectionResultintersectQuadCurveRay(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2, double box, double boy, double bdx, double bdy, double maxT, double epsilon) static @NonNull IntersectionResultintersectQuadCurveRay(@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'.static IntersectionResultintersectQuadCurveRay(@NonNull Point2D p0, @NonNull Point2D p1, @NonNull Point2D p2, @NonNull Point2D ao, @NonNull Point2D ad, double maxT, double epsilon) static @NonNull IntersectionResultintersectRayQuadCurve(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y) static @NonNull IntersectionResultintersectRayQuadCurve(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double epsilon) static @NonNull IntersectionResultintersectRayQuadCurve(@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'.static IntersectionResultExintersectRayQuadCurveEx(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y) static IntersectionResultExintersectRayQuadCurveEx(double aox, double aoy, double adx, double ady, double maxT, double p0x, double p0y, double p1x, double p1y, double p2x, double p2y, double epsilon)
-
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) -
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) -
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) -
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)
-