LibiadaCore.Core.IntervalsManagers.CongenericIntervalsManager.FillIntervals C# (CSharp) 메소드

FillIntervals() 개인적인 메소드

The fill intervals.
private FillIntervals ( int positions, int sequenceLength ) : void
positions int /// Not empty positions of congeneric sequence. ///
sequenceLength int /// Length of the sequence. ///
리턴 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];
        }