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>