Skip to content

Commit

Permalink
Rename inverse() to invert()
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank authored Dec 15, 2022
1 parent 0a98f61 commit 84445b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/controls/OrbitControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ THREE.OrbitControls = function ( object, domElement ) {

// so camera.up is the orbit axis
var quat = new THREE.Quaternion().setFromUnitVectors( object.up, new THREE.Vector3( 0, 1, 0 ) );
var quatInverse = quat.clone().inverse();
var quatInverse = quat.clone().invert();

var lastPosition = new THREE.Vector3();
var lastQuaternion = new THREE.Quaternion();
Expand Down Expand Up @@ -1039,4 +1039,4 @@ Object.defineProperties( THREE.OrbitControls.prototype, {

}

} );
} );

0 comments on commit 84445b4

Please sign in to comment.