More Beziers
I now have quadratics, cubics, and quartics. Right now it's semi-hardcoded to the number of points in the curve. I'm trying to make a Bezier class that will create a Bezier out of any number of points, but implementing it is really confusing and difficult.
- Quadratic Creation:
- Generate the 2 lines between the 3 points
- Get the 2 points along the 2 lines at the particular interval
- Get the line between the points
- Get the point along that line at the particular interval, and draw
[*]Cubic Creation:
- Generate the 3 lines between the 4 points
- Get the 3 points along the 3 lines at the particular interval
- Get the 2 lines between the 3 points
- Get the 2 points along the 2 lines at the particular interval
- Get the line between the 2 points
- Get the point along the line at the particular interval, and draw
- Generate the 2 lines between the 3 points
See where it gets repetative?
Recommended Comments
There are no comments to display.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now