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

MergeIntoBounds() public method

Merge a point (relative to terrain node) into the local bounds, and that of children if applicable.
public MergeIntoBounds ( long x, long y, Vector3 pos ) : void
x long The point on the terrain to which this position corresponds /// (affects which nodes update their bounds)
y long The point on the terrain to which this position corresponds /// (affects which nodes update their bounds)
pos Vector3 The position relative to the terrain centre
return void
        public void MergeIntoBounds(long x, long y, Vector3 pos)
        {
            if (PointIntersectsNode(x, y))
            {
                Vector3 localPos = pos - mLocalCentre;
                mAABB.Merge(localPos);
                mBoundingRadius = System.Math.Max(mBoundingRadius, localPos.Length);
                if (!IsLeaf)
                {
                    for (int i = 0; i < 4; ++i)
                        mChildren[i].MergeIntoBounds(x, y, pos);
                }
            }
        }