mirror of
https://github.com/godotengine/godot.git
synced 2025-01-12 20:22:49 +08:00
15 lines
240 B
C++
15 lines
240 B
C++
|
|
#pragma once
|
|
|
|
#include "base.h"
|
|
|
|
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);
|
|
|
|
}
|