title: Algorithm for deriving control points of a bezier curve from points along that curve?
body: <p>I've been looking for, but obviously not finding, an algorithm that will allow me to plug in a list of x,y coordinates that are known to be along a curve so as to get the 4 control points for a cubic bezier curve spit out.</p>
  
  <p>To be more precise, I'm looking for an algorithm that will give me the two control points required to shape the curve while inputting a series of discrete points including the two control points which determine the start and end of the curve.</p>
  
  <p>Thanks!</p>
  
  <p>Edit: Okay, due to math, an old foe, I need to ask for the bezier curve of best fit to a polynomial function.</p>