Refactoring

This commit is contained in:
Isaac 2024-05-18 19:13:31 +04:00
parent 422447656b
commit 566bce1a9d

View File

@ -198,7 +198,7 @@ inline bool isApproximatelyEqual(float value, float other) {
return std::abs(value - other) <= FLT_EPSILON;
}
static float SolveCubic(double a, double b, double c, double d) {
static float SolveCubic(float a, float b, float c, float d) {
if (isApproximatelyEqual(a, 0.0f)) {
return SolveQuadratic(b, c, d);
}