curves problem

QuadCurves2D can draw a curve that use three points ,but the control point doesn’t track the curve ,how can i do? say have three points , how to draw a curve that track thest points?

A typical spline does not go through its control points.

What you are looking for is “curve matching”. There are many many curves that can match a given set of points. You will need to decide exactly what algortihym gives you the results you really desire.

Here’s an article on “cardinal splines” which do go through the poinst in the set. Its even in Java :slight_smile:

http://www.mail-archive.com/java2d-interest@capra.eng.sun.com/msg02296.html

If thats not right or enough I’m sure you can find others with a google, like I just did.

Thanks for your help.your answer is nice,exactly what i’ve always wanted.thank you.