浏览代码

Formatting fixes

WestLangley 11 年之前
父节点
当前提交
cfef344f9d
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      examples/js/controls/DeviceOrientationControls.js

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

@@ -92,13 +92,13 @@ THREE.DeviceOrientationControls = function ( object ) {
 
 		return function ( quaternion, alpha, beta, gamma, orient ) {
 
-			euler.set( beta, alpha, - gamma, 'YXZ' );						// 'ZXY' for the device, but 'YXZ' for us
+			euler.set( beta, alpha, - gamma, 'YXZ' );                       // 'ZXY' for the device, but 'YXZ' for us
 
-			quaternion.setFromEuler( euler );								// orient the device
+			quaternion.setFromEuler( euler );                               // orient the device
 
-			quaternion.multiply( q1 );										// camera looks out the back of the device, not the top
+			quaternion.multiply( q1 );                                      // camera looks out the back of the device, not the top
 
-			quaternion.multiply( q0.setFromAxisAngle( zee, - orient ) );	// adjust for screen orientation
+			quaternion.multiply( q0.setFromAxisAngle( zee, - orient ) );    // adjust for screen orientation
 
 		}