query
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
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