▲ | dahart 9 hours ago | ||||||||||||||||
If the author is here, have you tested and can you comment on the precision of these different methods? I see the code uses some fast-math style approximations for a few operations. How does that compare to Newton-Raphson? And what was the termination criteria for Newton-Raphson… can the runtime be increased or decreased significantly by adjusting the threshold a little? | |||||||||||||||||
▲ | LegionMammal978 6 hours ago | parent [-] | ||||||||||||||||
Newton's method isn't really so useful for cubics (outside of lucky initial guesses), given how simple the algebraic expressions are. Meanwhile, I wonder to what extent the reported improvement over Blender's cubic solver has to do with the approximations this library makes [0]. Algebraic cubic-solving seems to be well-trodden ground (this library's formulas look similar to those in a paper by Holmes [1]), so faster approximations in a limited range can definitely be appropriate to obtain a further speedup, but I would've liked to see a more thorough accuracy analysis. [0] https://github.com/jurgus/EasingCubicBezier/blob/5b07bd9d316... [1] https://users.math.msu.edu/users/newhous7/math_235/lectures/... | |||||||||||||||||
|