Class IntersectEllipseRectangle

java.lang.Object
org.jhotdraw8.geom.intersect.IntersectEllipseRectangle

public class IntersectEllipseRectangle extends Object
  • 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 ellipse
      rx - the x-radius of the ellipse
      ry - the y-radius of the ellipse
      r1 - corner point 1 of the rectangle
      r2 - corner point 2 of the rectangle
      Returns:
      computed intersection
    • intersectEllipseRectangleEx

      public static IntersectionResultEx intersectEllipseRectangleEx(Point2D c, double rx, double ry, Point2D r1, Point2D r2)