java.lang.Object
org.jhotdraw8.geom.intersect.IntersectPolygonQuadCurve
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultintersectQuadCurvePolygon(Point2D p0, Point2D p1, Point2D p2, List<Point2D.Double> points) Computes the intersection between quadratic bezier curve 'p' and the given closed polygon.
-
Method Details
-
intersectQuadCurvePolygon
public static IntersectionResult intersectQuadCurvePolygon(Point2D p0, Point2D p1, Point2D p2, List<Point2D.Double> points) Computes the intersection between quadratic bezier curve 'p' and the given closed polygon.The intersection will contain the parameters 't' 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'points- the points of the polygon- Returns:
- the computed intersection
-