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;
 }
 public ThrottleParameters(AlgorithmicComplexity complexity, bool animationEnabled)
 {
     this.Complexity = complexity;
     this.AnimationEnabled = animationEnabled;
 }