equation-solver.h 223 B

1234567891011121314
  1. #pragma once
  2. #include "types.h"
  3. namespace msdfgen {
  4. // ax^2 + bx + c = 0
  5. int solveQuadratic(real x[2], real a, real b, real c);
  6. // ax^3 + bx^2 + cx + d = 0
  7. int solveCubic(real x[3], real a, real b, real c, real d);
  8. }