title: As3 Function for extrapolating points on a spline curve or Hermite Curve similar to keframe interpolation?
body: <p>I was hoping someone could help me working out some advanced data reformatting. What I'm hoping for is a function where I can input a value along with an array of key positions like so:</p>
  
  <pre><code>function remap(percentage:Number, keypoints:Array) { ...
  </code></pre>
  
  <p>The array would start with the minimum and end with the maximum point, with nested key points along the way. For example, I would input something like <code>remap(0.25, [0:0,80:50,100:100] )</code> and the function would 'imagine' a spline curve graph from (0,0)-(100,100) with a key point of (80,50), then return the y value that is 25% along that graph.</p>
  
  <p>Hopefully that's clear... Any ideas?</p>