Forráskód Böngészése

Minor code layout changes (editorial changes only)

richtr 11 éve
szülő
commit
49fdb26dc0
1 módosított fájl, 5 hozzáadás és 5 törlés
  1. 5 5
      examples/js/controls/DeviceOrientationControls.js

+ 5 - 5
examples/js/controls/DeviceOrientationControls.js

@@ -111,10 +111,10 @@ THREE.DeviceOrientationControls = function ( object ) {
 				//
 				// 180 degrees counter-clockwise screen transformation matrix:
 				//
-				//   / -1  0  0  0  \
-				//   |  0 -1  0  0  |
-				//   |  0  0  1  0  |
-				//   \  0  0  0  1  /
+				//      / -1  0  0  0  \
+				//      |  0 -1  0  0  |
+				//      |  0  0  1  0  |
+				//      \  0  0  0  1  /
 				//
 				// (see: http://bit.ly/1dIrx0I)
 				//
@@ -190,7 +190,7 @@ THREE.DeviceOrientationControls = function ( object ) {
 
 		this.setRotationMatrixFromRotationVector( this._rotationVector );
 
-		this.remapRotationMatrixByScreenOrientation( this.screenOrientation, this._rotationMatrix);
+		this.remapRotationMatrixByScreenOrientation( this.screenOrientation, this._rotationMatrix );
 
 		this.object.quaternion.setFromRotationMatrix( this._rotationMatrix );