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 IntersectionResultintersectQuadCurveRay(double ax0, double ay0, double ax1, double ay1, double ax2, double ay2, double box, double boy, double bdx, double bdy, double maxT) static 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 IntersectionResultComputes the intersection between quadratic bezier curve 'p' and the line 'a'.static IntersectionResultintersectQuadCurveRay(Point2D p0, Point2D p1, Point2D p2, Point2D ao, Point2D ad, double maxT, double epsilon)
-
Method Details
-
intersectQuadCurveRay
public static IntersectionResult intersectQuadCurveRay(Point2D p0, Point2D p1, Point2D p2, Point2D ao, 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(Point2D p0, Point2D p1, Point2D p2, Point2D ao, Point2D ad, double maxT, double epsilon) - Parameters:
p0-p1-p2-ao-ad-maxT-epsilon-- Returns:
-
intersectQuadCurveRay
public static 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 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)
-