Jump to content

More Beziers


PWNZOR
 Share


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

See where it gets repetative?

From the album:

Non-LEGO Images

  • 27 images
  • 0 comments
  • 0 image comments

 Share


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
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.