From 5812a70e08b75b089364582418c6277c122ab16e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Tue, 16 Jun 2015 18:25:50 +0200 Subject: [PATCH] Use EPSILON instead of TOLERANCE in Point#isColinear() and #isOrthogonal() (reverted from commit 5f0e545ba78ab55153be0dbccf5671247f2d8af7) --- src/basic/Point.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/basic/Point.js b/src/basic/Point.js index 4d2fcb84..43f33e2d 100644 --- a/src/basic/Point.js +++ b/src/basic/Point.js @@ -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; }, /**