public static Interpolator Create(AlgorithmType algorithm, float[] floatValues, int intValue) { Interpolator.Verify(algorithm, floatValues, intValue); var interpolator = new Interpolator(); interpolator.algorithm = algorithm; interpolator.floatValues = floatValues; interpolator.intValue = intValue; interpolator.Apply(); return(interpolator); }