示例#1
0
 public void InsertCompany(Company Newbie)
 {
     if (isLeafNode)
     {
         Array.Resize <Company>(ref Constituents, Constituents.Length + 1);
         Constituents[Constituents.Length - 1] = Newbie;
     }
     else
     {
         if (Newbie.Location[SplitDimensionIndex] > SplitPosition)
         {
             GreaterNode.InsertCompany(Newbie);
         }
         else
         {
             LessEqualNode.InsertCompany(Newbie);
         }
     }
 }