mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Do not use GEOMETRIC_EPSILON in Curve.getParameterAt()
This caused issues in some rare edge-cases.
This commit is contained in:
parent
d543658c43
commit
1073340eeb
1 changed files with 1 additions and 1 deletions
|
@ -1300,7 +1300,7 @@ new function() { // Scope for methods that require private functions
|
|||
// Get length of total range
|
||||
rangeLength = Numerical.integrate(ds, a, b,
|
||||
getIterations(a, b));
|
||||
if (abs(offset - rangeLength) < /*#=*/Numerical.GEOMETRIC_EPSILON) {
|
||||
if (abs(offset - rangeLength) < /*#=*/Numerical.EPSILON) {
|
||||
// Matched the end:
|
||||
return forward ? b : a;
|
||||
} else if (abs(offset) > rangeLength) {
|
||||
|
|
Loading…
Reference in a new issue