mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-01 02:38:43 -05:00
Go back to matching curve beginnings / ends with GEOMETRIC_EPSILON.
This is possible because we're handling the special line case separately before already.
This commit is contained in:
parent
d832a1ffcb
commit
fa15b083b0
1 changed files with 0 additions and 4 deletions
|
@ -1727,10 +1727,6 @@ new function() { // Scope for intersection using bezier fat-line clipping
|
|||
var straight1 = Curve.isStraight(v1),
|
||||
straight2 = Curve.isStraight(v2),
|
||||
straight = straight1 && straight2,
|
||||
// NOTE: Use smaller Numerical.EPSILON to compare beginnings and
|
||||
// end points to avoid matching them on almost collinear lines,
|
||||
// see: https://github.com/paperjs/paper.js/issues/777
|
||||
epsilon = /*#=*/Numerical.EPSILON,
|
||||
before = locations.length;
|
||||
// Determine the correct intersection method based on whether one or
|
||||
// curves are straight lines:
|
||||
|
|
Loading…
Reference in a new issue