fix bezier step approx

This commit is contained in:
vaxerski 2023-03-03 13:08:46 +00:00
parent 66b8629964
commit c5aa20f226

View file

@ -69,5 +69,5 @@ float CBezierCurve::getYForPoint(float x) {
if (std::isnan(PERCINDELTA) || std::isinf(PERCINDELTA)) // can sometimes happen for VERY small x if (std::isnan(PERCINDELTA) || std::isinf(PERCINDELTA)) // can sometimes happen for VERY small x
return 0.f; return 0.f;
return LOWERPOINT->y + (UPPERPOINT->y - UPPERPOINT->y) * PERCINDELTA; return LOWERPOINT->y + (UPPERPOINT->y - LOWERPOINT->y) * PERCINDELTA;
} }