浏览代码

Three.js style formatting.

Ben Houston 12 年之前
父节点
当前提交
d23fc1b8cb
共有 3 个文件被更改,包括 12 次插入0 次删除
  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 ) {