HashGridProxy <T>
Hierarchy
- HashGridProxy
Index
Constructors
Properties
Methods
Constructors
constructor
Type parameters
- T: { bounds: BoundingBox }
Parameters
object: T
gridSize: number
Returns HashGridProxy<T>
Properties
bottomY
bounds
cells
readonlygridSize
Grid size in pixels
hasZeroBounds
id
leftX
left bounds x hash coordinate
publicobject
rightX
right bounds x hash coordinate
topY
top bounds y hash coordinate
Methods
clear
Clears all collider references
Returns void
hasChanged
Has the hashed bounds changed
Refreshes
boundsas a side effect (via updateBounds) so callers that need the current bounds regardless of the result (see SparseHashGrid.update) don't have to recompute themReturns boolean
update
Updates the hashed bounds coordinates
Only called after hasChanged returns true, which has already refreshed
boundsReturns void
updateBounds
Update bounds of the proxy
Returns void
bottom bounds y hash coordinate