mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-19 06:00:56 -05:00
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:
commit
4d21e219c0
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue