mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-08 05:42:07 -05:00
Fix syntax error.
This commit is contained in:
parent
89704243b1
commit
523b9ea592
1 changed files with 1 additions and 1 deletions
|
@ -142,7 +142,7 @@ var Numerical = new function() {
|
||||||
var p = b / (2 * a);
|
var p = b / (2 * a);
|
||||||
var q = c / a;
|
var q = c / a;
|
||||||
var p2 = p * p;
|
var p2 = p * p;
|
||||||
if (!abs(p2 - q) < epsilon && p2 < q)
|
if (p2 < q - epsilon)
|
||||||
return 0;
|
return 0;
|
||||||
var s = p2 > q ? sqrt(p2 - q) : 0;
|
var s = p2 > q ? sqrt(p2 - q) : 0;
|
||||||
roots[0] = s - p;
|
roots[0] = s - p;
|
||||||
|
|
Loading…
Reference in a new issue