Private
Optional
_NEThe North East subtree
Private
Optional
_NWthe North West subtree
Private
Optional
_SEthe South East subtree
Private
Optional
_SWthe South West subtree
Private
_dividedUsed to know if the current instance is divided or not (branch or leaf)
Private
Readonly
_pointsThe point contained in this instance
Readonly
capacitythe points capacity
Readonly
rectanglethe instance rectangle area
Queries the instance using a Rectangle object, with the given position and the given size
the particles inside the given range
Queries the instance using a Circle object, with the given position and the given radius
the particles inside the given circle
the circle position
the circle radius
Optional
check: ((particle: Particle) => boolean)the function to check if the particle can be added to the result
Queries the instance using a Rectangle object, with the given position and the given size
the particles inside the given rectangle
the rectangle position
the rectangle size
Optional
check: ((particle: Particle) => boolean)the function to check if the particle can be added to the result
Private
subdivide
Initializes the instance with a rectangle and a capacity