Beispiel #1
0
 public Boolean IsBorderSequence(Range <T> Range) => this.IsValid() && Range.IsValid() && (this.Maximum.Equals(Range.Minimum) || this.Minimum.Equals(Range.Maximum));
Beispiel #2
0
 /// <summary>
 /// Determines if another range is inside the bounds of this range
 /// </summary>
 /// <param name="Range">The child range to test</param>
 /// <returns>True if range is inside, else false</returns>
 public Boolean ContainsRange(Range <T> Range) => this.IsValid() && Range.IsValid() && this.ContainsValue(Range.Minimum) && this.ContainsValue(Range.Maximum);
Beispiel #3
0
 /// <summary>
 /// Determines if another range intersect this range
 /// </summary>
 /// <param name="Range">The child range to test</param>
 /// <returns>True if range is inside, else false</returns>
 public Boolean IntersectRange(Range <T> Range) => this.IsValid() && Range.IsValid() && (this.ContainsValue(Range.Minimum) || this.ContainsValue(Range.Maximum) || Range.ContainsValue(this.Maximum) || Range.ContainsValue(this.Maximum));
Beispiel #4
0
 /// <summary>
 /// Determines if this Range is inside the bounds of another range
 /// </summary>
 /// <param name="Range">The parent range to test on</param>
 /// <returns>True if range is inclusive, else false</returns>
 public Boolean IsInsideRange(Range <T> Range) => this.IsValid() && Range.IsValid() && Range.ContainsValue(this.Minimum) && Range.ContainsValue(this.Maximum);