mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -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.
|
// Start with out initial guess for x.
|
||||||
// NOTE: guess is a negative value when not looking forward.
|
// NOTE: guess is a negative value when not looking forward.
|
||||||
return Numerical.findRoot(f, ds, start + guess, a, b, 16,
|
return Numerical.findRoot(f, ds, start + guess, a, b, 32,
|
||||||
/*#=*/Numerical.CURVETIME_EPSILON);
|
/*#=*/Numerical.EPSILON);
|
||||||
},
|
},
|
||||||
|
|
||||||
getPoint: function(v, t) {
|
getPoint: function(v, t) {
|
||||||
|
|
Loading…
Reference in a new issue