2
0
Эх сурвалжийг харах

fix bug in Line3.distance/distanceSq

Ben Houston 12 жил өмнө
parent
commit
e08369e815
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  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 );