public class PointQuadTree<T extends PointQuadTree.Item>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
PointQuadTree.Item |
Constructor and Description |
---|
PointQuadTree(Bounds bounds) |
PointQuadTree(double minX,
double maxX,
double minY,
double maxY)
Creates a new quad tree with specified bounds.
|
Modifier and Type | Method and Description |
---|---|
void |
add(T item)
Insert an item.
|
void |
clear()
Removes all points from the quadTree
|
boolean |
remove(T item)
Remove the given item from the set.
|
java.util.Collection<T> |
search(Bounds searchBounds)
Search for all items within a given bounds.
|
public PointQuadTree(double minX, double maxX, double minY, double maxY)
minX
- maxX
- minY
- maxY
- public PointQuadTree(Bounds bounds)