1 | |
---|---|
2 | #pragma once |
3 | |
4 | namespace msdfgen { |
5 | |
6 | // ax^2 + bx + c = 0 |
7 | int solveQuadratic(double x[2], double a, double b, double c); |
8 | |
9 | // ax^3 + bx^2 + cx + d = 0 |
10 | int solveCubic(double x[3], double a, double b, double c, double d); |
11 | |
12 | } |
13 |
1 | |
---|---|
2 | #pragma once |
3 | |
4 | namespace msdfgen { |
5 | |
6 | // ax^2 + bx + c = 0 |
7 | int solveQuadratic(double x[2], double a, double b, double c); |
8 | |
9 | // ax^3 + bx^2 + cx + d = 0 |
10 | int solveCubic(double x[3], double a, double b, double c, double d); |
11 | |
12 | } |
13 |