Exemple #1
0
 /// <summary>
 /// Constructs a multi-dimensional range search tree.
 /// </summary>
 /// <param name="dimensionCount">The number of dimensions to search.</param>
 /// <param name="items">The items to search.</param>
 /// <param name="comparer">The comparer for the items.</param>
 public RangeSearchTree(int dimensionCount, IEnumerable <T> items, MultiDimensionalComparer <T> comparer)
 {
     m_comparer                  = comparer;
     this.DimensionCount         = dimensionCount;
     m_specificDimensionComparer = new SpecificDimensionComparer <T>(m_comparer);
     m_root = BuildTree(items, 0);
 }
 public MinMaxBoundedRange(MultiDimensionalComparer <T> comparer, T minCorner, T maxCorner)
 {
     m_comparer     = comparer;
     this.MinCorner = minCorner;
     this.MaxCorner = maxCorner;
 }
Exemple #3
0
 public SpecificDimensionComparer(MultiDimensionalComparer <T> comparer)
 {
     m_comparer     = comparer;
     this.Dimension = 0;
 }
 public MinMaxBoundedRange(MultiDimensionalComparer <T> comparer)
 {
     m_comparer = comparer;
 }