_handleAmbient(maxHorizontal, maxVertical) {
        if (!maxHorizontal || !maxVertical) {
            throw new Error('Both bounds must be provided.');
        } // if
        this._updateDX(0, maxHorizontal);
        this._updateDY(0, maxVertical);
        this._updatePositionWithVelocity();
    } // _handleAmbient
/**
     * Handles moving this Circle around on the canvas as if it were just bouncing around.
     * @param {number} maxHorizontal the maximum horizontal bound of the Circle on the canvas
     * @param {number} maxVertical   the maximum vertical bound of the Circle on the canvas
     * @throws {Error} if maxHorizontal or maxVertical is falsy
     */
Handles moving this Circle around on the canvas as if it were just bouncing around.
@param {number} maxHorizontal the maximum horizontal bound of the Circle on the canvas
@param {number} maxVertical   the maximum vertical bound of the Circle on the canvas
@throws {Error} if maxHorizontal or maxVertical is falsy
Handles moving this Circle around on the canvas as if it were just bouncing around . @param { number } maxHorizontal the maximum horizontal bound of the Circle on the canvas @param { number } maxVertical the maximum vertical bound of the Circle on the canvas @throws { Error } if maxHorizontal or maxVertical is falsy
_handleAmbient(maxHorizontal, maxVertical) {
        if (!maxHorizontal || !maxVertical) {
            throw new Error('Both bounds must be provided.');
        } 
        this._updateDX(0, maxHorizontal);
        this._updateDY(0, maxVertical);
        this._updatePositionWithVelocity();
    } 
_handleAmbient ( maxHorizontal , maxVertical ) { if ( ! maxHorizontal || ! maxVertical ) { throw new Error ( 'Both bounds must be provided.' ) ; } this . _updateDX ( 0 , maxHorizontal ) ; this . _updateDY ( 0 , maxVertical ) ; this . _updatePositionWithVelocity ( ) ; }
Handles moving this Circle around on the canvas as if it were just bouncing around.
Handles moving this Circle around on the canvas as if it were just bouncing around .
// if // _handleAmbient