public interface SpatialIndex
Modifier and Type | Method and Description |
---|---|
java.util.Collection<Indexable> |
getItemsInRegion(double xMin,
double yMin,
double xMax,
double yMax)
Get all indexable objects in a region.
|
java.util.Collection<Indexable> |
getItemsInRegion(Region region)
Get all indexable objects in a region.
|
void |
insert(Indexable i)
Add an item to the index.
|
void insert(Indexable i)
i
- The item to add.java.util.Collection<Indexable> getItemsInRegion(double xMin, double yMin, double xMax, double yMax)
xMin
- The minimum X value.yMin
- The minimum Y value.xMax
- The maximum X value.yMax
- The maximum Y value.