query

fun query(x1: Double, y1: Double, x2: Double, y2: Double): MutableList<E>

Same of querying with arrays, but with explicit parameters.

Return

List of Objects in range.

Parameters

x1

Rectangle X coordinate of the first point

y1

Rectangle Y coordinate of the first point

x2

Rectangle X coordinate of the second point

y2

Rectangle Y coordinate of the second point


open override fun query(vararg parallelotope: DoubleArray): MutableList<E>

Queries the SpatialIndex, searching for elements in a parallelotope. "Parallelotope" is a fancy word for "N-dimensional rectangle". A 2-parallelotope is a rectangle, a 3-parallelotope is a parallelepiped, and so on.

Return

The list of elements in this area of the SpatialIndex.

Parameters

parallelotope

The space where to search for elements