public class RectanglesCollection extends Object implements Iterable<Rectangle2D.Double>
| Constructor and Description |
|---|
RectanglesCollection() |
RectanglesCollection(Rectangle2D.Double rect) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(Rectangle2D.Double rect) |
void |
addAll(RectanglesCollection other) |
double |
getSurf() |
boolean |
intersect(RectanglesCollection other) |
Iterator<Rectangle2D.Double> |
iterator() |
int |
size() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic RectanglesCollection()
public RectanglesCollection(Rectangle2D.Double rect)
public double getSurf()
public void add(Rectangle2D.Double rect)
public Iterator<Rectangle2D.Double> iterator()
iterator in interface Iterable<Rectangle2D.Double>public boolean intersect(RectanglesCollection other)
public int size()
public void addAll(RectanglesCollection other)
Copyright © 2017. All rights reserved.