You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The formulas used in easeInCirc and easeOutCirc are not actually a circle shape.
They're parabolas.
After goofing around, I've made two formulas that I think would be more accurate.
The formulas in easeInCirc and easeOutCirc are circles, not parabolas.
This is because of the square root applied after the first parabolification.
This can be derived from Pythagorean theorem.
If we take any point on the circle and draw a right triangle whose hypothenuse is the point on the circle and its legs are parallel to the x and y axis, then we can use the pythagorean theorem (assuming unit circle): $x^2 + y^2 = 1$
and solve for $y$, since we want a function that gives us $y$ for a given $x$. $1 - x^2 = y^2$ $sqrt(1 - x^2) = y$
Now we just need to move it to the right $sqrt(1 - (x-1)^2) = y$
and we get the Ease Out equation.
For the Ease in, we just have to invert it and move up. $1 - sqrt(1 - x^2) = y$
However your equations aren't actually wrong since they are identical as can be seen here.
Despite being identities, using trigonometric functions in this cases might not be ideal due to their potential increased computation intensity and slightly smaller accuracy.
The formulas used in easeInCirc and easeOutCirc are not actually a circle shape.
They're parabolas.
After goofing around, I've made two formulas that I think would be more accurate.
The text was updated successfully, but these errors were encountered: