queryDynamic(vector, distance) {
            
            let keyMin = this.key(Vector.of(vector.x - distance, vector.y - distance));
            let keyMax = this.key(Vector.of(vector.x + distance, vector.y + distance));
            let list = [];
            let queriesMade = 0;
            
            for(let i = keyMin.x; i <= keyMax.x; i++) {
                for(let j = keyMin.y; j <= keyMax.y; j++) {
                    let newKey = IntPair.keyString(i, j);
                    this.queryCollect(newKey, list);
                    queriesMade++;
                }
            }
            //console.log(queriesMade + " queries made");
            return list;
        }
/**
         * Gets the list of objects within the bounding box given by a center
         * vector and a rectangular distance. While this works for all use cases,
         * other querying methods may be more efficient for smaller queries.
         * 
         * @param {Vector} vector   The vector to query. 
         * @param {number} distance The rectangular distance from the vector to
         *                          query.
         * @returns {Array<GameObject>} A list of objects.
         */
Gets the list of objects within the bounding box given by a center
vector and a rectangular distance. While this works for all use cases,
other querying methods may be more efficient for smaller queries.

@param {Vector} vector   The vector to query.
@param {number} distance The rectangular distance from the vector to
query.
@returns {Array} A list of objects.
Gets the list of objects within the bounding box given by a center vector and a rectangular distance . While this works for all use cases other querying methods may be more efficient for smaller queries . @param { Vector } vector The vector to query . @param { number } distance The rectangular distance from the vector to query . @returns { Array } A list of objects .
queryDynamic(vector, distance) {
            let keyMin = this.key(Vector.of(vector.x - distance, vector.y - distance));
            let keyMax = this.key(Vector.of(vector.x + distance, vector.y + distance));
            let list = [];
            let queriesMade = 0;
            for(let i = keyMin.x; i <= keyMax.x; i++) {
                for(let j = keyMin.y; j <= keyMax.y; j++) {
                    let newKey = IntPair.keyString(i, j);
                    this.queryCollect(newKey, list);
                    queriesMade++;
                }
            }
            return list;
        }
queryDynamic ( vector , distance ) { let keyMin = this . key ( Vector . of ( vector . x - distance , vector . y - distance ) ) ; let keyMax = this . key ( Vector . of ( vector . x + distance , vector . y + distance ) ) ; let list = [ ] ; let queriesMade = 0 ; for ( let i = keyMin . x ; i <= keyMax . x ; i ++ ) { for ( let j = keyMin . y ; j <= keyMax . y ; j ++ ) { let newKey = IntPair . keyString ( i , j ) ; this . queryCollect ( newKey , list ) ; queriesMade ++ ; } } return list ; }
Gets the list of objects within the bounding box given by a center
 vector and a rectangular distance.
Gets the list of objects within the bounding box given by a center vector and a rectangular distance .
//console.log(queriesMade + " queries made");