Browse Source

Three.js style formatting.

Ben Houston 12 năm trước cách đây
mục cha
commit
d23fc1b8cb
3 tập tin đã thay đổi với 12 bổ sung0 xóa
  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 ) {