Beispiel #1
0
 /// <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);
 }
Beispiel #2
0
 /// <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);
 }