Example #1
0
 private void CalculateOffset()
 {
     if (FeatureLocation == null || _samLocation == null)
     {
         _offset = int.MaxValue;
     }
     else
     {
         _offset = _samLocation.Offset(FeatureLocation);
     }
 }
Example #2
0
        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);
        }