SpatialHashing<T> class
Data structure for spatial hashing to get widgets to be built quickly based on their position in a 2D grid.
Constructors
- SpatialHashing.new({required Size cellSize})
Properties
Methods
-
add(
Point< num> point, T data) → void -
clear(
) → void -
getPointsAround(
Point< num> point, Offset offset) → List<PointData< T> > -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
Point< num> point) → void -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited