Axiom.Components.Terrain.TerrainQuadTreeNode.NotifyDelta C# (CSharp) Method

NotifyDelta() public method

Notify the node (and children) of a height delta value.
public NotifyDelta ( ushort x, ushort y, ushort lod, float delta ) : void
x ushort
y ushort
lod ushort
delta float
return void
        public void NotifyDelta(ushort x, ushort y, ushort lod, float delta)
        {
            if (x >= mOffsetX && x < mBoundaryX
                && y >= mOffsetY && y < mBoundaryY)
            {
                // within our bounds, check it's our LOD level
                if (lod >= mBaseLod && lod < mBaseLod + (ushort)(mLodLevels.Count))
                {
                    int iter = 0;
                    iter += lod - mBaseLod;
                    LodLevel tmp = mLodLevels[iter];
                    tmp.CalcMaxHeightDelta = System.Math.Max(tmp.CalcMaxHeightDelta, delta);
                }

                // pass to the children
                if (!IsLeaf)
                {
                    for (int i = 0; i < 4; i++)
                        mChildren[i].NotifyDelta(x, y, lod, delta);
                }
            }
        }
        /// <summary>