Do not use GEOMETRIC_EPSILON in Curve.getParameterAt()

This caused issues in some rare edge-cases.
This commit is contained in:
Jürg Lehni 2015-10-21 01:09:03 +02:00
parent d543658c43
commit 1073340eeb

View file

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