Namespace: rectPrototype

rectPrototype

Rectangles inserted into the quadtree are extended with this object literal
Source:

Methods

(static) getCollisions() → {Array}

Returns an array of the rectangles within the quadtree that intersect with this rectangle
Source:
Returns:
The rectangles that intersect with this rectangle
Type
Array

(static) move(x, y)

Moves the rectangle in the quadtree to a new position (x, y)
Parameters:
Name Type Description
x Number The x coordinate as defined by the quadtree coordinate system
y Number The y coordinate as defined by the quadtree coordinate system
Source:

(static) remove()

Comepletely removes this rectangle from the quadtree
Source: