fix supports by reverting to old distance algorithm
This commit is contained in:
parent
a38e03fd68
commit
220469f09b
3 changed files with 7 additions and 2 deletions
|
|
@ -138,6 +138,11 @@ var gs_base_point = exports;
|
|||
* @returns {number}
|
||||
*/
|
||||
PRO.distToLine = function(p1, p2) {
|
||||
// return p2l(this, p1, p2);
|
||||
return Math.sqrt(this.distToLineSq(p1, p2));
|
||||
};
|
||||
|
||||
PRO.distToLineNew = function(p1, p2) {
|
||||
return p2l(this, p1, p2);
|
||||
// return Math.sqrt(this.distToLineSq(p1, p2));
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue