Ejemplo n.º 1
0
 public static int GetMaxPointsPerPass(AlgorithmicComplexity complexity, bool animationEnabled, int n)
 {
     ThrottleParameters parameters = new ThrottleParameters(complexity, animationEnabled);
     NRange[] nRanges = MaxPointsPerPass[parameters];
     foreach (NRange range in nRanges)
     {
         if (range.IsIn(n))
             return range.MaxPoints;
     }
     return 0;
 }
Ejemplo n.º 2
0
 public ThrottleParameters(AlgorithmicComplexity complexity, bool animationEnabled)
 {
     this.Complexity = complexity;
     this.AnimationEnabled = animationEnabled;
 }