예제 #1
0
 public abstract Range <T> Intersect(Range <T> other);
예제 #2
0
 public abstract Range <T> Add(Range <T> other);
예제 #3
0
 public virtual Range <T> Subtract(Range <T> other)
 {
     return(Intersect(other.Complement));
 }
예제 #4
0
 public abstract bool OverlapsWith(Range <T> other);
예제 #5
0
 public override Range <T> Intersect(Range <T> other)
 {
     return(other);
 }
예제 #6
0
 public override Range <T> Add(Range <T> other)
 {
     return(this);
 }
예제 #7
0
 public override bool OverlapsWith(Range <T> other)
 {
     return(true);
 }
예제 #8
0
 public override Range <T> Subtract(Range <T> other)
 {
     return(this);
 }