Exemplo n.º 1
0
 public KdMap(int dimensions, Subdivision.ISubdivisionPolicy policy)
 {
     _kdtree        = new KdTree <LocatablePair <TKey, TValue> >(dimensions, policy);
     _es            = new Searches.ExactSearch <LocatablePair <TKey, TValue> >(_kdtree.Root);
     _es.CountLimit = 1;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Construct default kd-map with n-dimensions.
 /// </summary>
 public KdMap(int dimensions)
 {
     _kdtree        = new KdTree <LocatablePair <TKey, TValue> >(dimensions, new Subdivision.SubdivisionPolicyConnector());
     _es            = new Searches.ExactSearch <LocatablePair <TKey, TValue> >(_kdtree.Root);
     _es.CountLimit = 1;
 }