public static RendererFunction GetFunctionHandle(string formula) { CompiledFunction fn = FunctionCompiler.Compile(4, formula); return(new RendererFunction(delegate(double x, double y, double z, double val) { return fn(x, y, z, val); })); }
public static Func <double, double, double> GetFunctionHandle(string formula) { CompiledFunction fn = FunctionCompiler.Compile(2, formula); return((x, y) => fn(x, y)); }