提交 6d450ffc 编写于 作者: M Mr.doob

Clean up.

上级 652174c4
......@@ -44,7 +44,7 @@ Object.assign( Curve.prototype, {
// Virtual base class method to overwrite and implement in subclasses
// - t [0 .. 1]
getPoint: function ( t ) {
getPoint: function () {
console.warn( "THREE.Curve: Warning, getPoint() not implemented!" );
return null;
......@@ -131,7 +131,7 @@ Object.assign( Curve.prototype, {
for ( p = 1; p <= divisions; p ++ ) {
current = this.getPoint ( p / divisions );
current = this.getPoint( p / divisions );
sum += current.distanceTo( last );
cache.push( sum );
last = current;
......@@ -144,7 +144,7 @@ Object.assign( Curve.prototype, {
},
updateArcLengths: function() {
updateArcLengths: function () {
this.needsUpdate = true;
this.getLengths();
......@@ -237,7 +237,7 @@ Object.assign( Curve.prototype, {
// 2 points a small delta apart will be used to find its gradient
// which seems to give a reasonable approximation
getTangent: function( t ) {
getTangent: function ( t ) {
var delta = 0.0001;
var t1 = t - delta;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册