浏览代码

Clean up.

Mr.doob 8 年之前
父节点
当前提交
6d450ffcec
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/extras/core/Curve.js

+ 4 - 4
src/extras/core/Curve.js

@@ -44,7 +44,7 @@ Object.assign( Curve.prototype, {
 	// Virtual base class method to overwrite and implement in subclasses
 	// Virtual base class method to overwrite and implement in subclasses
 	//	- t [0 .. 1]
 	//	- t [0 .. 1]
 
 
-	getPoint: function ( t ) {
+	getPoint: function () {
 
 
 		console.warn( "THREE.Curve: Warning, getPoint() not implemented!" );
 		console.warn( "THREE.Curve: Warning, getPoint() not implemented!" );
 		return null;
 		return null;
@@ -131,7 +131,7 @@ Object.assign( Curve.prototype, {
 
 
 		for ( p = 1; p <= divisions; p ++ ) {
 		for ( p = 1; p <= divisions; p ++ ) {
 
 
-			current = this.getPoint ( p / divisions );
+			current = this.getPoint( p / divisions );
 			sum += current.distanceTo( last );
 			sum += current.distanceTo( last );
 			cache.push( sum );
 			cache.push( sum );
 			last = current;
 			last = current;
@@ -144,7 +144,7 @@ Object.assign( Curve.prototype, {
 
 
 	},
 	},
 
 
-	updateArcLengths: function() {
+	updateArcLengths: function () {
 
 
 		this.needsUpdate = true;
 		this.needsUpdate = true;
 		this.getLengths();
 		this.getLengths();
@@ -237,7 +237,7 @@ Object.assign( Curve.prototype, {
 	// 2 points a small delta apart will be used to find its gradient
 	// 2 points a small delta apart will be used to find its gradient
 	// which seems to give a reasonable approximation
 	// which seems to give a reasonable approximation
 
 
-	getTangent: function( t ) {
+	getTangent: function ( t ) {
 
 
 		var delta = 0.0001;
 		var delta = 0.0001;
 		var t1 = t - delta;
 		var t1 = t - delta;