mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-05 20:32:00 -05:00
Use the zero-epsilon when checking beginnings and ends of curves for overlaps.
Relates to #786 and #777
This commit is contained in:
parent
1e5c1bafaf
commit
e548391276
1 changed files with 1 additions and 1 deletions
|
@ -1729,7 +1729,7 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
||||||
c1p2 = new Point(v1[6], v1[7]),
|
c1p2 = new Point(v1[6], v1[7]),
|
||||||
c2p1 = new Point(v2[0], v2[1]),
|
c2p1 = new Point(v2[0], v2[1]),
|
||||||
c2p2 = new Point(v2[6], v2[7]),
|
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
|
// Handle the special case where the first curve's stat-point
|
||||||
// overlaps with the second curve's start- or end-points.
|
// overlaps with the second curve's start- or end-points.
|
||||||
if (c1p1.isClose(c2p1, epsilon))
|
if (c1p1.isClose(c2p1, epsilon))
|
||||||
|
|
Loading…
Reference in a new issue