瀏覽代碼

fix bug in Line3.distance/distanceSq

Ben Houston 12 年之前
父節點
當前提交
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 );