mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
Use EPSILON instead of TOLERANCE in Point#isColinear() and #isOrthogonal()
This commit is contained in:
parent
538eac6dc7
commit
5f0e545ba7
1 changed files with 2 additions and 2 deletions
|
@ -702,7 +702,7 @@ var Point = Base.extend(/** @lends Point# */{
|
|||
* @returns {Boolean} {@true it is colinear}
|
||||
*/
|
||||
isColinear: function(point) {
|
||||
return Math.abs(this.cross(point)) < /*#=*/Numerical.TOLERANCE;
|
||||
return Math.abs(this.cross(point)) < /*#=*/Numerical.EPSILON;
|
||||
},
|
||||
|
||||
/**
|
||||
|
@ -713,7 +713,7 @@ var Point = Base.extend(/** @lends Point# */{
|
|||
* @returns {Boolean} {@true it is orthogonal}
|
||||
*/
|
||||
isOrthogonal: function(point) {
|
||||
return Math.abs(this.dot(point)) < /*#=*/Numerical.TOLERANCE;
|
||||
return Math.abs(this.dot(point)) < /*#=*/Numerical.EPSILON;
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue