Ver Fonte

Three.js style formatting.

Ben Houston há 12 anos atrás
pai
commit
d23fc1b8cb
3 ficheiros alterados com 12 adições e 0 exclusões
  1. 4 0
      src/math/Vector2.js
  2. 4 0
      src/math/Vector3.js
  3. 4 0
      src/math/Vector4.js

+ 4 - 0
src/math/Vector2.js

@@ -42,11 +42,15 @@ THREE.Vector2.prototype = {
 	},
 
 	setComponent: function ( index, value ) {
+
 		this[ THREE.Vector2.__indexToName[ index ] ] = value;
+
 	},
 
 	getComponent: function ( index ) {
+
 		return this[ THREE.Vector2.__indexToName[ index ] ];
+		
 	},
 
 	copy: function ( v ) {

+ 4 - 0
src/math/Vector3.js

@@ -55,11 +55,15 @@ THREE.Vector3.prototype = {
 	},
 
 	setComponent: function ( index, value ) {
+
 		this[ THREE.Vector3.__indexToName[ index ] ] = value;
+		
 	},
 
 	getComponent: function ( index ) {
+
 		return this[ THREE.Vector3.__indexToName[ index ] ];
+
 	},
 
 	copy: function ( v ) {

+ 4 - 0
src/math/Vector4.js

@@ -63,11 +63,15 @@ THREE.Vector4.prototype = {
 	},
 
 	setComponent: function ( index, value ) {
+
 		this[ THREE.Vector4.__indexToName[ index ] ] = value;
+
 	},
 
 	getComponent: function ( index ) {
+
 		return this[ THREE.Vector4.__indexToName[ index ] ];
+		
 	},
 
 	copy: function ( v ) {