Fixed tangent calculation for cubic interpolator.