Interface SpatialIndex<T>

All Known Implementing Classes:
QuadTree, RTree

public interface SpatialIndex<T>
  • Method Details

    • insert

      void insert(Box box, T item)
    • remove

      boolean remove(Box box, T item)
    • search

      List<T> search(Box bbox, List<T> results)
    • search

      boolean search(Box bbox, SpatialIndex.SearchCb<T> cb, Object context)
    • searchKNearestNeighbors

      List<T> searchKNearestNeighbors(Point center, int k, double maxDistance, List<T> results)
    • searchKNearestNeighbors

      void searchKNearestNeighbors(Point center, int k, double maxDistance, SpatialIndex.SearchCb<T> cb, Object context)
    • size

      int size()
    • clear

      void clear()