-
Notifications
You must be signed in to change notification settings - Fork 679
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
easeOutBack math function for 0 is incorrect #151
Comments
= 1 + c3 * pow(x - 1, 3) + c1 * pow(x - 1, 2); Here is my work for arriving at 0 as output with a 0 input. Seems correct to me. |
Ah I see, format your output to a certain number of decimal places seems like the proper solution. |
Yes, it is an incredibly small value and I'm sure an argument could be made about managing floating point precision but considering some of the other functions defer to |
Changing |
Using the Math function for easeOutBack: https://easings.net/#easeOutBack
results in
2.220446049250313e-16
whereas it should be0
If the calculation is correct then a simple conditional to return
0
whenx === 0
would be necessary.The text was updated successfully, but these errors were encountered: