/// <summary> /// Determines whether this interval includes the queried interval /// </summary> /// <param name="segment"></param> /// <returns></returns> internal bool Includes(ProteolysisProduct segment) { return(OneBasedBeginPosition <= segment.OneBasedBeginPosition && OneBasedEndPosition >= segment.OneBasedEndPosition); }
/// <summary> /// Determines whether this interval overlaps the queried interval /// </summary> /// <param name="segment"></param> /// <returns></returns> internal bool Intersects(ProteolysisProduct segment) { return(segment.OneBasedEndPosition >= OneBasedBeginPosition && segment.OneBasedBeginPosition <= OneBasedEndPosition); }