Explorar o código

fix bug in Line3.distance/distanceSq

Ben Houston %!s(int64=12) %!d(string=hai) anos
pai
achega
e08369e815
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      src/math/Line3.js

+ 2 - 2
src/math/Line3.js

@@ -43,13 +43,13 @@ THREE.extend( THREE.Line3.prototype, {
 
 
 	},
 	},
 
 
-	distanceSq: function ( optionalTarget ) {
+	distanceSq: function () {
 
 
 		return this.start.distanceToSquared( this.end );
 		return this.start.distanceToSquared( this.end );
 
 
 	},
 	},
 
 
-	distance: function ( optionalTarget ) {
+	distance: function () {
 
 
 		return this.start.distanceTo( this.end );
 		return this.start.distanceTo( this.end );