java.lang.Object
org.jhotdraw8.geom.intersect.IntersectEllipseRectangle
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NonNull IntersectionResultintersectEllipseRectangle(@NonNull Point2D c, double rx, double ry, @NonNull Point2D r1, @NonNull Point2D r2) Computes the intersection between an ellipse and a rectangle.static IntersectionResultExintersectEllipseRectangleEx(@NonNull Point2D c, double rx, double ry, @NonNull Point2D r1, @NonNull Point2D r2)
-
Method Details
-
intersectEllipseRectangle
public static @NonNull IntersectionResult intersectEllipseRectangle(@NonNull Point2D c, double rx, double ry, @NonNull Point2D r1, @NonNull 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
-