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

cell double
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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