public static float InterpolateFloatsWithMathNet( float fromTime, float fromValue, float fromTangent, float toTime, float toValue, float toTangent, float time) { var spline = CubicSpline .InterpolateHermiteSorted(new double[] { fromTime, toTime }, new double[] { fromValue, toValue }, new double[] { fromTangent, toTangent }); return((float)spline.Interpolate(time)); }