Fitting a curve to three points.

UPDATE: I’ve posted a better version here using only vector math.

I recently had a need to fit a curve to three points. The geometry can get somewhat complex due to the limits of finite math, however, here is JAVA applet I’ve created with a relatively simple solution to the problem:

Drag the green points around to see how the curve fits different sets of points.

Source Code: (View) (Download)

UPDATE: I’ve posted a better version here using only vector math.

This entry was written by Mathew Eis , posted on Friday October 03 2008at 05:10 pm , filed under Programming and tagged , , , . Bookmark the permalink . Post a comment below or leave a trackback: Trackback URL.

No Comments on “Fitting a curve to three points.” - Leave your comment below:

Leave a Reply