From de933903e605edbf93d51cfd1ee40b12abcb296c Mon Sep 17 00:00:00 2001 From: Michael Zinsmaier Date: Fri, 1 Jul 2011 16:30:09 +0200 Subject: [PATCH] v0.15 negative values should work now (outcommented a negative -> 0 hook hope it does no harm) --- curvedLines.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/curvedLines.js b/curvedLines.js index 3ebd823..3550230 100644 --- a/curvedLines.js +++ b/curvedLines.js @@ -74,6 +74,7 @@ _____________________________________________________ /* * v0.1 initial commit + * v0.15 negative values should work now (outcommented a negative -> 0 hook hope it does no harm) * * */ @@ -327,9 +328,9 @@ _____________________________________________________ var b = (xnew[j] - xdata[min]) / h; ynew[j] = a * ydata[min] + b * ydata[max] + ((a * a * a - a) * y2[min] + (b * b * b - b) * y2[max]) * (h * h) / 6; - if (ynew[j] < 0.01){ - ynew[j] = 0; - } +// if (ynew[j] < 0.01){ +// ynew[j] = 0; +// } result.push(xnew[j]); result.push(ynew[j]); }