Sha256: c70db3f42ab5eae4049eab1e8b8b9486ca9d28e6d1238bd20eaa276079fee422

Contents?: true

Size: 783 Bytes

Versions: 11

Compression:

Stored size: 783 Bytes

Contents

package toxi.geom;

import java.util.List;

/**
 *
 * @author tux
 * @param <T>
 */
public interface SpatialIndex<T> {

    /**
     *
     */
    public void clear();

    /**
     *
     * @param p
     * @return
     */
    public boolean index(T p);

    /**
     *
     * @param item
     * @return
     */
    public boolean isIndexed(T item);

    /**
     *
     * @param p
     * @param radius
     * @param results
     * @return
     */
    public List<T> itemsWithinRadius(T p, float radius, List<T> results);

    /**
     *
     * @param p
     * @param q
     * @return
     */
    public boolean reindex(T p, T q);

    /**
     *
     * @return
     */
    public int size();

    /**
     *
     * @param p
     * @return
     */
    public boolean unindex(T p);

}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
toxiclibs-2.1.0 src/main/java/toxi/geom/SpatialIndex.java
toxiclibs-2.0.0 src/main/java/toxi/geom/SpatialIndex.java
toxiclibs-1.0.0 src/toxi/geom/SpatialIndex.java
toxiclibs-0.9.3 src/toxi/geom/SpatialIndex.java
toxiclibs-0.9.2 src/toxi/geom/SpatialIndex.java
toxiclibs-0.9.1 src/toxi/geom/SpatialIndex.java
toxiclibs-0.9.0 src/toxi/geom/SpatialIndex.java
toxiclibs-0.8.0 src/toxi/geom/SpatialIndex.java
toxiclibs-0.6.0-java src/toxi/geom/SpatialIndex.java
toxiclibs-0.5.1-java src/toxi/geom/SpatialIndex.java
toxiclibs-0.5.0-java src/toxi/geom/SpatialIndex.java