Skip to content
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

Cubic Bézier easing? #3

Open
mbostock opened this issue Jun 11, 2015 · 1 comment · May be fixed by #29
Open

Cubic Bézier easing? #3

mbostock opened this issue Jun 11, 2015 · 1 comment · May be fixed by #29
Assignees
Labels

Comments

@mbostock
Copy link
Member

See d3/d3#1982. The only problem is that it’s kind of a pain to evaluate a cubic Bézier for y given x (rather than t), so it probably requires a numerical solution.

@Fil
Copy link
Member

Fil commented Jul 5, 2020

I've implemented a new function here https://observablehq.com/d/e7d4fef33e304f2b
Compared to a reference implementation: we get the same speed, and, unless I'm mistaken, our results are more accurate for the limiting cases of x1=0 and y1=1.

@Fil Fil self-assigned this Jul 10, 2020
@Fil Fil added the feature label Jul 10, 2020
Fil added a commit that referenced this issue Jul 22, 2020
with In, Out and InOut for symmetry with the others

closes #3
@Fil Fil linked a pull request Jul 22, 2020 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging a pull request may close this issue.

2 participants