LibiadaCore.Core.IntervalsManagers.CongenericIntervalsManager.FillIntervals C# (CSharp) Method

FillIntervals() private method

The fill intervals.
private FillIntervals ( int positions, int sequenceLength ) : void
positions int /// Not empty positions of congeneric sequence. ///
sequenceLength int /// Length of the sequence. ///
return void
        private void FillIntervals(int[] positions, int sequenceLength)
        {
            Start = positions[0] - (-1);

            for (int i = 0; i < intervals.Length; i++)
            {
                intervals[i] = positions[i + 1] - positions[i];
            }

            End = sequenceLength - positions[positions.Length - 1];
        }