Constructors
constructor
- new QuadTree(rectangle, capacity): QuadTree
Properties
Readonly
capacity
capacity: number
Readonly
rectangle
Methods
insert
- insert(point): boolean
Returns boolean
query
- query(range, check?): Particle[]
Parameters
- range: BaseRange
Optional
check: ((particle: Particle) => boolean)- (particle): boolean
Returns boolean
queryCircle
- queryCircle(position, radius, check?): Particle[]
Parameters
- position: ICoordinates
- radius: number
Optional
check: ((particle: Particle) => boolean)- (particle): boolean
Returns boolean
queryRectangle
- queryRectangle(position, size, check?): Particle[]