Package org.stianloader.stianknn

# Interface SpatialIndex1NN<T>

Type Parameters:
  `T` - The type of the elements stored in the index.

All Known Subinterfaces:
  `SpatialIndexIterable<E>`, `SpatialIndexKNN<T>`, `SpatialRingIndex1NN<T>`

All Known Implementing Classes:
  `SpatialBufferedQueryArray`, `SpatialQueryArray`, `SpatialQueryArrayLegacy`

public interface SpatialIndex1NN<T>
A 2D spatial index that is capable of looking up the nearest element to a provided point.

Mutability is undefined for this interface, it is best to assume that it is unsupported. The behaviour of elements with equal distance (and thus overlapping points) are undefined by this interface.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `T`
  `query1nn(float x, float y)`

- ## Method Details

  - ### query1nn

    @Nullable T query1nn(float x, float y)