Ver Fonte

Vector4: Reverted indent changes.

Mr.doob há 5 anos atrás
pai
commit
346528e19f
1 ficheiros alterados com 7 adições e 7 exclusões
  1. 7 7
      src/math/Vector4.js

+ 7 - 7
src/math/Vector4.js

@@ -323,17 +323,17 @@ Object.assign( Vector4.prototype, {
 			m31 = te[ 2 ], m32 = te[ 6 ], m33 = te[ 10 ];
 
 		if ( ( Math.abs( m12 - m21 ) < epsilon ) &&
-			 ( Math.abs( m13 - m31 ) < epsilon ) &&
-			 ( Math.abs( m23 - m32 ) < epsilon ) ) {
+		     ( Math.abs( m13 - m31 ) < epsilon ) &&
+		     ( Math.abs( m23 - m32 ) < epsilon ) ) {
 
 			// singularity found
 			// first check for identity matrix which must have +1 for all terms
 			// in leading diagonal and zero in other terms
 
 			if ( ( Math.abs( m12 + m21 ) < epsilon2 ) &&
-				 ( Math.abs( m13 + m31 ) < epsilon2 ) &&
-				 ( Math.abs( m23 + m32 ) < epsilon2 ) &&
-				 ( Math.abs( m11 + m22 + m33 - 3 ) < epsilon2 ) ) {
+			     ( Math.abs( m13 + m31 ) < epsilon2 ) &&
+			     ( Math.abs( m23 + m32 ) < epsilon2 ) &&
+			     ( Math.abs( m11 + m22 + m33 - 3 ) < epsilon2 ) ) {
 
 				// this singularity is identity matrix so angle = 0
 
@@ -419,8 +419,8 @@ Object.assign( Vector4.prototype, {
 		// as we have reached here there are no singularities so we can handle normally
 
 		var s = Math.sqrt( ( m32 - m23 ) * ( m32 - m23 ) +
-						   ( m13 - m31 ) * ( m13 - m31 ) +
-						   ( m21 - m12 ) * ( m21 - m12 ) ); // used to normalize
+		                   ( m13 - m31 ) * ( m13 - m31 ) +
+		                   ( m21 - m12 ) * ( m21 - m12 ) ); // used to normalize
 
 		if ( Math.abs( s ) < 0.001 ) s = 1;