mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Increase precision in Curve.getParameterOf()
Usually only requires 0-1 more iteration.
This commit is contained in:
parent
56da70c030
commit
ea2ff5ec28
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue