Exemplo n.º 1
0
        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);
            }));
        }
Exemplo n.º 2
0
        public static Func <double, double, double> GetFunctionHandle(string formula)
        {
            CompiledFunction fn = FunctionCompiler.Compile(2, formula);

            return((x, y) => fn(x, y));
        }