Exemple #1
0
 public TagGroup(int fontSize, FrequencyGroup frequencyGroup)
 {
     if (fontSize <= 0)
     {
         throw new ArgumentException($"Font size can't be negative or zero, but was {fontSize}");
     }
     FontSize       = fontSize;
     FrequencyGroup = frequencyGroup;
 }
Exemple #2
0
 public bool IntersectWith(FrequencyGroup other)
 {
     return(MinFrequencyCoef >= other.MinFrequencyCoef && MinFrequencyCoef < other.MaxFrequencyCoef ||
            MaxFrequencyCoef > other.MinFrequencyCoef && MaxFrequencyCoef <= other.MaxFrequencyCoef);
 }