Sounds like you want to look at quadtratic or cubic curves.  Look here

  http://java.sun.com/docs/books/tutorial/2d/display/strokeandfill.html

for the "Drawing Curves" example.

For connecting a set of points, you'll probably want to look
at the PathIterator interface:

  http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/PathIterator.html

and the GeneralPath class:

  http://java.sun.com/j2se/1.4/docs/api/java/awt/geom/GeneralPath.html

-David


On Wed, 13 Mar 2002, Shekhar, Jayant wrote:

> I am looking for an algorithm to join a set of (x,y) points by a curve. The
> faster the execution the better. There are no further constraints.
>
> I have tried looking for it in quite a few places but still haven't found
> it.
>
>
> Thanks!!!
>
> Jayant Shekhar.
>
> ===========================================================================
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff JAVA2D-INTEREST".  For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
>

------------------------+--------------------------+
David Eisner            | E-mail: [EMAIL PROTECTED]   |
CALCE EPSC              | Phone:  301-405-5341     |
University of Maryland  | Fax:    301-314-9269     |
------------------------+--------------------------+

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to