예제 #1
0
            /// <summary>
            /// Construct a GeoTree node, defining the underlying area.
            /// </summary>
            /// <param name="tree">
            /// The <see cref="GeoTree{T}"/> which this Node belongs to.
            /// </param>
            /// <param name="area">
            /// A <see cref="GeoTreeArea"/>
            /// </param>
            public GeoTreePartition(GeoTree <T> tree, GeoTreeArea area)
            {
                if (tree == null)
                {
                    throw new ArgumentNullException("tree");
                }

                Tree = tree;
                Area = area;

                mPartition[0] = CreatePartitionLL();
                mPartition[1] = CreatePartitionLR();
                mPartition[2] = CreatePartitionUL();
                mPartition[3] = CreatePartitionUR();
            }
예제 #2
0
 /// <summary>
 /// Construct a GeoTree node, defining the underlying area.
 /// </summary>
 /// <param name="tree">
 /// The <see cref="GeoTree{T}"/> which this Node belongs to.
 /// </param>
 /// <param name="area">
 /// A <see cref="GeoTreeArea"/>
 /// </param>
 public LeafNode(GeoTree <T> tree, GeoTreeArea area)
     : base(tree, area)
 {
 }