public bool IsOverlapping(DoubleRange range) { if (!IsInside(range.min) && !IsInside(range.max) && !range.IsInside(min)) { return(range.IsInside(max)); } return(true); }
/// <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))); }
/// <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 ) ) ); }