Parcourir la source

fix bug in Line3.distance/distanceSq

Ben Houston il y a 12 ans
Parent
commit
e08369e815
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  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 );