Beispiel #1
0
 public bool Equals(DoubleRange other)
 {
     return(Begin == other.Begin && End == other.End);
 }
Beispiel #2
0
        public DoubleRange Adjust(DoubleRange bounds)
        {
            var begin = Math.Max(Math.Min(End, bounds.End) - Length, bounds.Begin);

            return(new DoubleRange(begin, begin + Math.Min(Length, bounds.Length)));
        }