From e54839127680e0f8273cabce5aeff98797cb81d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Wed, 16 Sep 2015 02:33:56 +0200 Subject: [PATCH] Use the zero-epsilon when checking beginnings and ends of curves for overlaps. Relates to #786 and #777 --- src/path/Curve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 5ad00858..be30826c 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -1729,7 +1729,7 @@ new function() { // Scope for intersection using bezier fat-line clipping c1p2 = new Point(v1[6], v1[7]), c2p1 = new Point(v2[0], v2[1]), c2p2 = new Point(v2[6], v2[7]), - epsilon = /*#=*/Numerical.GEOMETRIC_EPSILON; + epsilon = /*#=*/Numerical.EPSILON; // Handle the special case where the first curve's stat-point // overlaps with the second curve's start- or end-points. if (c1p1.isClose(c2p1, epsilon))