using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VisiMath.Fractals
{
    public abstract class HeightMap
    {

        protected int _width;
        protected int _height;
        protected Random rnd;

        /// <summary>
        /// Width of the fractal map
        /// </summary>
        public int Width
        {
            get
            {
                return _width;
            }
        }

        /// <summary>
        /// Height of the fractal map
        /// </summary>
        public int Height
        {
            get
            {
                return _height;
            }
        }


        /// <summary>
        /// Index like acessor
        /// </summary>
        /// <param name="indexX"></param>
        /// <param name="indexY"></param>
        /// <returns></returns>
        public abstract float this[float indexX, float indexY]
        {
            get; set;
        }


    }
}
