mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-03 19:45:44 -05:00
Clean up white space.
This commit is contained in:
parent
dfa85fc0da
commit
ba4ff62052
1 changed files with 2 additions and 2 deletions
|
@ -153,11 +153,11 @@ var Numerical = new function() {
|
|||
*
|
||||
* a*x^3 + b*x^2 + c*x + d = 0
|
||||
*/
|
||||
solveCubic: function(a, b, c, d, roots, tolerance) {
|
||||
solveCubic: function(a, b, c, d, roots, tolerance) {
|
||||
// After Numerical Recipes in C, 2nd edition, Press et al.,
|
||||
// 5.6, Quadratic and Cubic Equations
|
||||
if (abs(a) < tolerance)
|
||||
return Numerical.solveQuadratic(b, c, d, roots, tolerance);
|
||||
return Numerical.solveQuadratic(b, c, d, roots, tolerance);
|
||||
// Normalize
|
||||
b /= a;
|
||||
c /= a;
|
||||
|
|
Loading…
Reference in a new issue