Exemple #1
0
        public void AddCandidate(RingSequence ringSequence, int relativeOffset, Rectangle bounds)
        {
            var index      = GetStepIndex(relativeOffset);
            var stepOffset = (index * _stepSize) - relativeOffset;
            var candidate  = new SequenceCandidate(ringSequence, stepOffset, bounds);

            _candidates[index].Add(candidate);
        }
Exemple #2
0
 public SequenceCandidate(RingSequence sequence, int relativeOffset, Rectangle bounds)
 {
     Sequence       = sequence ?? throw new ArgumentNullException(nameof(sequence));
     RelativeOffset = relativeOffset;
     Bounds         = bounds;
 }