From ea2ff5ec289b023643efdc5054cb022f7aba9554 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Sun, 13 Sep 2015 13:45:20 +0200 Subject: [PATCH] Increase precision in Curve.getParameterOf() Usually only requires 0-1 more iteration. --- src/path/Curve.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 711e0e6d..09844fe5 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -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) {