Mathematical Intuition Behind Bezier Curves
buildingvts.com
buildingvts.com
Short version:
Imagine a line connecting A to B. Now imagine a point sliding across that line, starting at A and going to B.
Now consider a line A to B and a second line B to C. A point slides across each line: one from A to B, another from B to C. Now draw a line connecting these two points, and imagine a point sliding across that line.
This moving line starts as A to B, ends as B to C, so the point sliding along it goes from A to C along a curved path. This is a quadratic Bézier curve.
Add another layer and you get cubic.
But clearly the geometric viewpoint isn't important to everybody, because the author of the post would have mentioned it if so!
See also, maybe: http://psychclassics.yorku.ca/Galton/imagery.htm http://www.nytimes.com/2015/06/23/science/aphantasia-minds-e... https://www.facebook.com/notes/blake-ross/aphantasia-how-it-...
https://en.wikipedia.org/wiki/B%C3%A9zier_curve#Constructing...
How to connect simple concepts (I think almost everybody would understand linear interpolation, even in [a, 1-a] form) and get polynomials.
Also check out the pomax bezier curve primer, which is filled with interactive diagrams and nice explanations of algorithms for doing anything you might like with Bézier curves, http://pomax.github.io/bezierinfo/ (previous discussions, https://news.ycombinator.com/item?id=11402656 https://news.ycombinator.com/item?id=8804691)
I also enjoyed this interview with Tony DeRose: https://www.youtube.com/watch?v=mX0NB9IyYpU
It can be so discouraging for people to encounter this stuff (geometric modelling primitives) as a mysterious incantation, essentially as raw algebraic code. I think there's probably more scope to humanize it, as Ramshaw and DeRose's demonstrations suggest.
I did different things like toy with caching movement on the curve, having constant speed on the path, etc. There's even a bit of calculus in there, in estimating the length of the curve.