Increase precision in Curve.getParameterOf()

Usually only requires 0-1 more iteration.
This commit is contained in:
Jürg Lehni 2015-09-13 13:45:20 +02:00
parent 56da70c030
commit ea2ff5ec28

View file

@ -1285,8 +1285,8 @@ new function() { // Scope for methods that require private functions
}
// Start with out initial guess for x.
// NOTE: guess is a negative value when not looking forward.
return Numerical.findRoot(f, ds, start + guess, a, b, 16,
/*#=*/Numerical.CURVETIME_EPSILON);
return Numerical.findRoot(f, ds, start + guess, a, b, 32,
/*#=*/Numerical.EPSILON);
},
getPoint: function(v, t) {