private void CalculateOffset() { if (FeatureLocation == null || _samLocation == null) { _offset = int.MaxValue; } else { _offset = _samLocation.Offset(FeatureLocation); } }
public override AcceptResult AcceptLocationPair(FeatureLocation floc, SAMAlignedLocation sloc) { var result = base.AcceptLocationPair(floc, sloc); if (!result.Accepted) { return(result); } var offset = sloc.Offset(floc); result.Accepted = Options.Offsets.Contains(offset); return(result); }