Use EPSILON instead of TOLERANCE in Point#isColinear() and #isOrthogonal() (reverted from commit 5f0e545ba7)

This commit is contained in:
Jürg Lehni 2015-06-16 18:25:50 +02:00
parent dbac9c06de
commit 5812a70e08

View file

@ -702,7 +702,7 @@ var Point = Base.extend(/** @lends Point# */{
* @return {Boolean} {@true it is colinear}
*/
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}
*/
isOrthogonal: function(point) {
return Math.abs(this.dot(point)) < /*#=*/Numerical.EPSILON;
return Math.abs(this.dot(point)) < /*#=*/Numerical.TOLERANCE;
},
/**