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; }
public static ScoreInterval To(ScoreBound max) => new ScoreInterval(ScoreBound.NegativeInfinity, max);
public static ScoreInterval From(ScoreBound min) => new ScoreInterval(min, ScoreBound.PositiveInfinity);