Home
last modified time | relevance | path

Searched refs:aGuessT (Results 1 – 2 of 2) sorted by relevance

/lvgl-latest/src/libs/thorvg/
DtvgLottieInterpolator.cpp105 float LottieInterpolator::NewtonRaphsonIterate(float aX, float aGuessT) in NewtonRaphsonIterate() argument
111 auto currentX = _calcBezier(aGuessT, outTangent.x, inTangent.x) - aX; in NewtonRaphsonIterate()
112 auto currentSlope = _getSlope(aGuessT, outTangent.x, inTangent.x); in NewtonRaphsonIterate()
113 if (currentSlope == 0.0f) return aGuessT; in NewtonRaphsonIterate()
114 aGuessT -= currentX / currentSlope; in NewtonRaphsonIterate()
116 return aGuessT; in NewtonRaphsonIterate()
DtvgLottieInterpolator.h45 float NewtonRaphsonIterate(float aX, float aGuessT);