Readonly
capacitythe points capacity
Readonly
rectanglethe instance rectangle area
Inserts the given point in the instance, or to its subtrees
the point to insert
true if the point is added to the instance or one of its subtrees, false if it's not
Queries the instance using a Circle object, with the given position and the given radius
the circle position
the circle radius
Optional
check: ((particle: Particle) => boolean)the function to check if the particle can be added to the result
the particles inside the given circle
Queries the instance using a Rectangle object, with the given position and the given size
the rectangle position
the rectangle size
Optional
check: ((particle: Particle) => boolean)the function to check if the particle can be added to the result
the particles inside the given rectangle
Initializes the instance with a rectangle and a capacity