Esempio n. 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);
        }
Esempio n. 2
0
 public SequenceCandidate(RingSequence sequence, int relativeOffset, Rectangle bounds)
 {
     Sequence       = sequence ?? throw new ArgumentNullException(nameof(sequence));
     RelativeOffset = relativeOffset;
     Bounds         = bounds;
 }