Răsfoiți Sursa

fix bug in Line3.distance/distanceSq

Ben Houston 12 ani în urmă
părinte
comite
e08369e815
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  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 );
 
 	},
 
-	distance: function ( optionalTarget ) {
+	distance: function () {
 
 		return this.start.distanceTo( this.end );