Class GridIndex2D<T extends HasPosition2>

  • All Implemented Interfaces:
    AutoCloseable, Iterable<T>

    public final class GridIndex2D<T extends HasPosition2>
    extends Object
    implements Iterable<T>, AutoCloseable
    Implements a grid index that can query objects with dimension 1 very fast at the expense of memory consumption. Use QuadTree instead for very large grids or 2 dimensional objects.