fix supports by reverting to old distance algorithm

This commit is contained in:
Stewart Allen 2018-03-06 15:46:34 -05:00
commit 220469f09b
3 changed files with 7 additions and 2 deletions

View file

@ -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));
};