GPUGraph.Editor.NodeTree_Element_Option.TwoVarFunc C# (CSharp) Method

TwoVarFunc() public static method

public static TwoVarFunc ( string func, string title, string tooltip, string var1 = "x", float defVal1 = float.NaN, string var2 = "y", float defVal2 = float.NaN ) : NodeTree_Element_Option
func string
title string
tooltip string
var1 string
defVal1 float
var2 string
defVal2 float
return NodeTree_Element_Option
        public static NodeTree_Element_Option TwoVarFunc(string func, string title, string tooltip,
														 string var1 = "x", float defVal1 = float.NaN,
														 string var2 = "y", float defVal2 = float.NaN)
        {
            return new Option((g, r) => new SimpleNode(r, func + "('" + var1 + "', '" + var2 + "')", title,
                                                       new P(var1, defVal1), new P(var2, defVal2)),
                              title, tooltip);
        }