Ver Fonte

fix bug in Line3.distance/distanceSq

Ben Houston há 12 anos atrás
pai
commit
e08369e815
1 ficheiros alterados com 2 adições e 2 exclusões
  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 );