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