IsInside() публичный Метод

Check if the specified range is inside of the range.
public IsInside ( DoubleRange range ) : bool
range DoubleRange Range to check.
Результат bool
Пример #1
0
 public bool IsOverlapping(DoubleRange range)
 {
     if (!IsInside(range.min) && !IsInside(range.max) && !range.IsInside(min))
     {
         return(range.IsInside(max));
     }
     return(true);
 }
Пример #2
0
 /// <summary>
 /// Check if the specified range overlaps with the range.
 /// </summary>
 ///
 /// <param name="range">Range to check for overlapping.</param>
 ///
 /// <returns><b>True</b> if the specified range overlaps with the range or
 /// <b>false</b> otherwise.</returns>
 ///
 public bool IsOverlapping(DoubleRange range)
 {
     return((IsInside(range.min)) || (IsInside(range.max)) ||
            (range.IsInside(min)) || (range.IsInside(max)));
 }
Пример #3
0
 /// <summary>
 /// Check if the specified range overlaps with the range.
 /// </summary>
 /// 
 /// <param name="range">Range to check for overlapping.</param>
 /// 
 /// <returns><b>True</b> if the specified range overlaps with the range or
 /// <b>false</b> otherwise.</returns>
 /// 
 public bool IsOverlapping( DoubleRange range )
 {
     return ( ( IsInside( range.min ) ) || ( IsInside( range.max ) ) ||
              ( range.IsInside( min ) ) || ( range.IsInside( max ) ) );
 }