/* * (non-Javadoc) * * @see math.geom2d.Curve2D#intersections(math.geom2d.LinearShape2D) */ public Collection<Point2D> intersections(LinearShape2D line) { // check point contained in it ArrayList<Point2D> array = new ArrayList<Point2D>(); for (Point2D point : ellipse.intersections(line)) if (contains(point)) array.add(point); return array; }