Merge pull request #74 from jonobr1/patch-1

Based on logic, I think the else if statement means to refer to c1 rathe...
This commit is contained in:
Jonathan Puckey 2012-03-02 03:30:25 -08:00
commit 4d21e219c0

View file

@ -140,7 +140,7 @@ var PathFitter = Base.extend({
c1 = C[1][0] + C[1][1];
if (Math.abs(c0) > epsilon) {
alpha1 = alpha2 = X[0] / c0;
} else if (Math.abs(c0) > epsilon) {
} else if (Math.abs(c1) > epsilon) {
alpha1 = alpha2 = X[1] / c1;
} else {
// Handle below