Made the interpolation direction a real parameter.