Linear interpolation

Drag the sky blue Points

-------------------------------------------------------------------

public static function interpolate(pt1:Point, pt2:Point, f:Number):Point
{
     var x:Number = (1 - f) * pt1.x + f * pt2.x;
     var y:Number = (1 - f) * pt1.y + f * pt2.y;
     return new Point(x, y);
}
