TerrainPainter.tp_Heights.Swap C# (CSharp) Method

Swap() public method

Swap two heights
public Swap ( int i, int p ) : void
i int
p int
return void
        public void Swap(int i, int p)
        {
            int temp = this[i].Index;
            this[i].SetIndex(this[p].Index);
            this[p].SetIndex(temp);
        }
        /// <summary>