clear(bounds) {
		this.objects.length = 0;

		for (let i = 0; i < this.nodes.length; i++) {
			this.nodes[i].clear();
			// recycle the quadTree object
			QT_ARRAY_PUSH(this.nodes[i]);
		}
		// empty the array
		this.nodes.length = 0;

		// resize the root bounds if required
		if (typeof bounds !== "undefined") {
			this.bounds.setMinMax(
				bounds.min.x,
				bounds.min.y,
				bounds.max.x,
				bounds.max.y,
			);
		}
	}
clear the quadtree
@param {Bounds} [bounds=this.bounds] - the bounds to be cleared