SpatialGrid<T> class
A grid index mapping 2D points to payloads of type T.
Constructors
- SpatialGrid(double cellSize)
-
Creates a grid whose square cells are
cellSizeunits on a side. RequirescellSize > 0. Audited: 2026-06-12 11:26 EDT
Properties
Methods
-
insert(
T item, double x, double y) → void -
Inserts
itemat position (x,y). The same item may be inserted at multiple positions; each insertion is independent. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
queryRadius(
double x, double y, double radius) → List< T> -
Items whose stored position lies within Euclidean distance
radiusof (x,y). Requiresradius >= 0. Order is unspecified. Audited: 2026-06-12 11:26 EDT -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited