예제 #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);
 }