SpatialHashGrid class
Spatial hash grid for fast collision queries. Divides space into cells and tracks rectangles in each cell.
Constructors
- SpatialHashGrid({double cell = 32})
Properties
Methods
-
add(
double l, double t, double r, double b, {required int category}) → int -
clear(
) → void -
collides(
double l, double t, double r, double b, {int? mask}) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited