B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Resize this implementation to use different bounds.
   * This function is automatically called when the arcball is created.
   *
   * @param {Number} newWidth
   *                 the new width of canvas
   * @param {Number} newHeight
   *                 the new  height of canvas
   * @param {Number} newRadius
   *                 optional, the new radius of the arcball
   */
Resize this implementation to use different bounds.
This function is automatically called when the arcball is created.

@param {Number} newWidth
the new width of canvas
@param {Number} newHeight
the new  height of canvas
@param {Number} newRadius
optional, the new radius of the arcball
Resize this implementation to use different bounds . This function is automatically called when the arcball is created . @param { Number } newWidth the new width of canvas @param { Number } newHeight the new height of canvas @param { Number } newRadius optional the new radius of the arcball
function TVA_resize(newWidth, newHeight, newRadius)
  {
    if (!newWidth || !newHeight) {
      return;
    }
    this.width = newWidth;
    this.height = newHeight;
    this.radius = newRadius ? newRadius : Math.min(newWidth, newHeight);
    this._save();
  }
function TVA_resize ( newWidth , newHeight , newRadius ) { if ( ! newWidth || ! newHeight ) { return ; } this . width = newWidth ; this . height = newHeight ; this . radius = newRadius ? newRadius : Math . min ( newWidth , newHeight ) ; this . _save ( ) ; }
Resize this implementation to use different bounds.
Resize this implementation to use different bounds .
// set the new width, height and radius dimensions