mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-06 04:42:15 -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
|
// Get length of total range
|
||||||
rangeLength = Numerical.integrate(ds, a, b,
|
rangeLength = Numerical.integrate(ds, a, b,
|
||||||
getIterations(a, b));
|
getIterations(a, b));
|
||||||
if (abs(offset - rangeLength) < /*#=*/Numerical.GEOMETRIC_EPSILON) {
|
if (abs(offset - rangeLength) < /*#=*/Numerical.EPSILON) {
|
||||||
// Matched the end:
|
// Matched the end:
|
||||||
return forward ? b : a;
|
return forward ? b : a;
|
||||||
} else if (abs(offset) > rangeLength) {
|
} else if (abs(offset) > rangeLength) {
|
||||||
|
|
Loading…
Reference in a new issue