예제 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Fractals"/>.
        /// </summary>
        /// <param name="length">Period length.</param>
        /// <param name="up">Fractal up.</param>
        /// <param name="down">Fractal down.</param>
        public Fractals(int length, FractalPart up, FractalPart down)
            : base(up, down)
        {
            if (length % 2 == 0)
            {
                throw new ArgumentOutOfRangeException(nameof(length), length, LocalizedStrings.Str845);
            }

            _length    = length;
            _numCenter = length / 2;
            Up         = up;
            Down       = down;
        }
예제 #2
0
		/// <summary>
		/// Initializes a new instance of the <see cref="Fractals"/>.
		/// </summary>
		/// <param name="length">Period length.</param>
		/// <param name="up">Up fractal.</param>
		/// <param name="down">Down fractal.</param>
		public Fractals(int length, FractalPart up, FractalPart down)
			: base(up, down)
		{
			if (length % 2 == 0)
			{
				throw new ArgumentOutOfRangeException(nameof(length), length, LocalizedStrings.Str845);
			}

			_length = length;
			_numCenter = length / 2;
			Up = up;
			Down = down;
		}