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