B2G/gecko/browser/devtools/tilt/TiltVisualizer.jsm
/**
   * Starts an animation resetting the arcball transformations to identity.
   *
   * @param {Array} aFinalTranslation
   *                optional, final vector translation
   * @param {Array} aFinalRotation
   *                optional, final quaternion rotation
   */
Starts an animation resetting the arcball transformations to identity.
@param {Array} aFinalTranslation
optional, final vector translation
@param {Array} aFinalRotation
optional, final quaternion rotation
Starts an animation resetting the arcball transformations to identity . @param { Array } aFinalTranslation optional final vector translation @param { Array } aFinalRotation optional final quaternion rotation
function TVA_reset(aFinalTranslation, aFinalRotation)
  {
    if ("function" === typeof this._onResetStart) {
      this._onResetStart();
      this._onResetStart = null;
    }
    this.cancelMouseEvents();
    this.cancelKeyEvents();
    this._cancelReset();
    this._save();
    this._resetFinalTranslation = vec3.create(aFinalTranslation);
    this._resetFinalRotation = quat4.create(aFinalRotation);
    this._resetInProgress = true;
  }
function TVA_reset ( aFinalTranslation , aFinalRotation ) { if ( "function" === typeof this . _onResetStart ) { this . _onResetStart ( ) ; this . _onResetStart = null ; } this . cancelMouseEvents ( ) ; this . cancelKeyEvents ( ) ; this . _cancelReset ( ) ; this . _save ( ) ; this . _resetFinalTranslation = vec3 . create ( aFinalTranslation ) ; this . _resetFinalRotation = quat4 . create ( aFinalRotation ) ; this . _resetInProgress = true ; }
Starts an animation resetting the arcball transformations to identity.
Starts an animation resetting the arcball transformations to identity .