Hey Guys,

I was wondering if someone could help me out with Splines/Curves. First off, I'm not exactly what you would call a math wiz

Ok so this is what I need:

A function that returns the Y coordinate for a given X coordinate and a variable list of control points. The function definition would look something like this:

Y = Spline(X, XControlPoints(), YControlPoints(), Tension)

It would be really great if the returned Y coordinates would pass through each control point instead of swinging past them like a bezier curve does.

I'm not asking anyone to write this for me but rather just point me in the right direction. If however you already have a function that does this I would be very grateful if you could share it.

Like I wrote above, I'm not very good with math so most of these math websites don't make much sense to me.

Thanks!

I was wondering if someone could help me out with Splines/Curves. First off, I'm not exactly what you would call a math wiz

Ok so this is what I need:

A function that returns the Y coordinate for a given X coordinate and a variable list of control points. The function definition would look something like this:

Y = Spline(X, XControlPoints(), YControlPoints(), Tension)

It would be really great if the returned Y coordinates would pass through each control point instead of swinging past them like a bezier curve does.

I'm not asking anyone to write this for me but rather just point me in the right direction. If however you already have a function that does this I would be very grateful if you could share it.

Like I wrote above, I'm not very good with math so most of these math websites don't make much sense to me.

Thanks!

## Comment