示例#1
0
 public EvaluatedGradientNode(GradientNode gradient, Dictionary<Variable, double> variables)
 {
     _gradient = gradient;
     Min = gradient.Min.Evaluate(variables);
     Max = gradient.Max.Evaluate(variables);
     Stops = FilterStopsForConflicts(gradient.Stops.Select(i => i.Evaluate(CalculateVariables(variables))))
         .ToList();
 }
示例#2
0
 private SchemeNode(string name, string friendlyName, GradientNode[] gradients)
 {
     Name = name;
     FriendlyName = friendlyName;
     _gradients = gradients;
 }