示例#1
0
 public Range Intersect(Range r)
 {
     return(Intersect(r.Lo, r.Hi));
 }
示例#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)));
 }
示例#3
0
 public bool IsSubsetOf(Range other)
 {
     return(Lo >= other.Lo && Hi <= other.Hi);
 }