Example #1
0
        public ScoreInterval(ScoreBound min, ScoreBound max)
        {
            if (ScoreBound.IsVoid(min, max))
            {
                throw new ArgumentException($"Interval must be non-void. Interval {min}..{max} is void");
            }

            Min = min;
            Max = max;
        }
Example #2
0
 public static ScoreInterval To(ScoreBound max) => new ScoreInterval(ScoreBound.NegativeInfinity, max);
Example #3
0
 public static ScoreInterval From(ScoreBound min) => new ScoreInterval(min, ScoreBound.PositiveInfinity);