edu.mit.sketch.geom
Class XPositionTree
java.lang.Object
|
+--edu.mit.sketch.geom.XPositionTree
- All Implemented Interfaces:
- Serializable
- public class XPositionTree
- extends Object
- implements Serializable
This class will serve as data structure that keeps the positions
of objects. It also supports some spatial queries.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XPositionTree
public XPositionTree()
- The constructor.
addPoint
public void addPoint(Point point)
- Add a point
pointsInside
public ArrayList pointsInside(int x1,
int y1,
int x2,
int y2)
- Add a point
assumes x1 < x2, y1 < y2