Exemple #1
0
 public void Insert(KDTreeValue val, Bounds b)
 {
     if (values == null)
     {
         if (split <= b.max[splittingAxis])
         {
             left.Insert(val, b);
         }
         if (split >= b.min[splittingAxis])
         {
             right.Insert(val, b);
         }
     }
     else
     {
         values.Add(val);
     }
 }
Exemple #2
0
    public void Insert(T obj, Bounds b)
    {
        KDTreeValue v = new KDTreeValue(obj, b);

        node.Insert(v, b);
    }