Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/msdfgen/core/equation-solver.h
9902 views
1
2
#pragma once
3
4
#include "base.h"
5
6
namespace msdfgen {
7
8
// ax^2 + bx + c = 0
9
int solveQuadratic(double x[2], double a, double b, double c);
10
11
// ax^3 + bx^2 + cx + d = 0
12
int solveCubic(double x[3], double a, double b, double c, double d);
13
14
}
15
16