コード例 #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);
 }