Searched refs:aGuessT (Results 1 – 2 of 2) sorted by relevance
105 float LottieInterpolator::NewtonRaphsonIterate(float aX, float aGuessT) in NewtonRaphsonIterate() argument111 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()
45 float NewtonRaphsonIterate(float aX, float aGuessT);