SparseHashGrid <TObject, TProxy>
Index
Constructors
Properties
Methods
Constructors
constructor
Type parameters
- TObject: { bounds: BoundingBox }
- TProxy: HashGridProxy<TObject> = HashGridProxy<TObject>
Parameters
options: { proxyFactory?: (object: TObject, gridSize: number) => TProxy; size: number }
Returns SparseHashGrid<TObject, TProxy>
Properties
publicbounds
readonlygridSize
readonlyobjectToProxy
readonlysparseHashGrid
Methods
debug
Parameters
ex: ExcaliburGraphicsContext
delta: number
Returns void
get
Parameters
xCoord: number
yCoord: number
Returns HashGridCell<TObject, HashGridProxy<TObject>>
query
Parameters
point: Vector
Returns TObject[]
track
Parameters
target: TObject
Returns void
untrack
Parameters
target: TObject
Returns void
update
Parameters
targets: TObject[]
Returns number