Jump to content
  • Advertisement
Sign in to follow this  
oscarfh

Curves! Lagrange und Bzier

This topic is 3530 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello, I am studying Compter Graphics, and I have a task that I have to do, but I am stuck: Note: Another community is not able to help me because this IS a homework. I don't want anyone to do it for me, I want to do it on my own, but I need some help because I am stuck. I just want some help to find my way out of this problem. I hope you understand and help me. I have this curve lagrange.jpg That was generated with Lagrange. with the points: p0=(-2,0) p1=(-1,0) p2=(0,3) p3=(1,0) p4=(2,0) and u0=0 u1=1/4 u2=1/2 u3=3/4 u4=1 What I have to do is: calculate the points to generate a curve that matches this one, but using Bézier. Like this picture: bezier.jpg But I don't know exactly the points. How can I calculate it? Also I have to do the oposite: I have a curve with Bézier and I have to generate a curve with lagrange to match the curve with Bézier. Thank you, Oscar

Share this post


Link to post
Share on other sites
Advertisement
These can be achieved using simple Trigonometry. Here is site that shows how to calculate shapes. Sine and Cosine should work for you.
http://oolong.co.uk/trig.htm

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!