예제 #1
0
 /// <summary>
 /// Check if the specified range overlaps with this range
 /// </summary>
 ///
 /// <param name="range">Range to check for overlapping</param>
 ///
 /// <returns><b>True</b> if the specified range overlaps with this range or
 /// <b>false</b> otherwise.</returns>
 ///
 public bool IsOverlapping(IntRange range)
 {
     return((Contains(range.min)) || (Contains(range.max)));
 }
예제 #2
0
 /// <summary>
 /// Check if the specified range is inside this range
 /// </summary>
 ///
 /// <param name="range">Range to check</param>
 ///
 /// <returns><b>True</b> if the specified range is inside this range or
 /// <b>false</b> otherwise.</returns>
 ///
 public bool Contains(IntRange range)
 {
     return((Contains(range.min)) && (Contains(range.max)));
 }