java.lang.Object
org.jhotdraw8.geom.intersect.IntersectEllipseRectangle
-
Method Summary
Modifier and TypeMethodDescriptionstatic IntersectionResultintersectEllipseRectangle(Point2D c, double rx, double ry, Point2D r1, Point2D r2) Computes the intersection between an ellipse and a rectangle.static IntersectionResultExintersectEllipseRectangleEx(Point2D c, double rx, double ry, Point2D r1, Point2D r2)
-
Method Details
-
intersectEllipseRectangle
public static IntersectionResult intersectEllipseRectangle(Point2D c, double rx, double ry, Point2D r1, Point2D r2) Computes the intersection between an ellipse and a rectangle.- Parameters:
c- the center of the ellipserx- the x-radius of the ellipsery- the y-radius of the ellipser1- corner point 1 of the rectangler2- corner point 2 of the rectangle- Returns:
- computed intersection
-
intersectEllipseRectangleEx
public static IntersectionResultEx intersectEllipseRectangleEx(Point2D c, double rx, double ry, Point2D r1, Point2D r2)
-