Exemple #1
0
 public Range Intersect(Range r)
 {
     return(Intersect(r.Lo, r.Hi));
 }
Exemple #2
0
 public bool Equals(Range other, double eps)
 {
     return(other != null && (IsEmpty && other.IsEmpty ||
                              AlmostEquals(other.Lo, Lo, eps) && AlmostEquals(other.Hi, Hi, eps)));
 }
Exemple #3
0
 public bool IsSubsetOf(Range other)
 {
     return(Lo >= other.Lo && Hi <= other.Hi);
 }