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