remove(obj) {
            let key = this.key(obj.pos);
            if(this.fillNearby) {
                for(let i = -OVERLAP; i <= OVERLAP; i++) {
                    for(let j = -OVERLAP; j <= OVERLAP; j++) {
                        // uses string representation of key
                        this.removeAtKey(obj, IntPair.keyString(key.x + i, key.y + j));
                    }
                }
            } else {
                this.removeAtKey(obj, key);
            }
            return obj;
        }
/**
         * Removes an object from the HashMap. If fillNearby is true, then it also
         * removes the object from the surrounding keys.
         * 
         * @param {GameObject} obj The object to remove.
         * @returns {GameObject} The removed object.
         */
Removes an object from the HashMap. If fillNearby is true, then it also
removes the object from the surrounding keys.

@param {GameObject} obj The object to remove.
@returns {GameObject} The removed object.
Removes an object from the HashMap . If fillNearby is true then it also removes the object from the surrounding keys . @param { GameObject } obj The object to remove . @returns { GameObject } The removed object .
remove(obj) {
            let key = this.key(obj.pos);
            if(this.fillNearby) {
                for(let i = -OVERLAP; i <= OVERLAP; i++) {
                    for(let j = -OVERLAP; j <= OVERLAP; j++) {
                        this.removeAtKey(obj, IntPair.keyString(key.x + i, key.y + j));
                    }
                }
            } else {
                this.removeAtKey(obj, key);
            }
            return obj;
        }
remove ( obj ) { let key = this . key ( obj . pos ) ; if ( this . fillNearby ) { for ( let i = - OVERLAP ; i <= OVERLAP ; i ++ ) { for ( let j = - OVERLAP ; j <= OVERLAP ; j ++ ) { this . removeAtKey ( obj , IntPair . keyString ( key . x + i , key . y + j ) ) ; } } } else { this . removeAtKey ( obj , key ) ; } return obj ; }
Removes an object from the HashMap.
Removes an object from the HashMap .
// uses string representation of key