Use the zero-epsilon when checking beginnings and ends of curves for overlaps.

Relates to #786 and #777
This commit is contained in:
Jürg Lehni 2015-09-16 02:33:56 +02:00
parent 1e5c1bafaf
commit e548391276

View file

@ -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))