pub fn new(dimension: usize) -> Self {
        let node = Node::new_internal_node(Region::infinite(dimension), None);
        let mut nodes = Arena::new();
        let root_index = nodes.insert(node);

        // TODO: figure out a better way to pass through min/max children here (maybe some sort of builder?)
        Self {
            nodes,
            root: root_index,
            min_children: 2,
            max_children: 8,
        }
    }
/// Creates a new [`RTree`] with the given number of dimensions.
///
/// # Example
/// ```rust
/// use spaceindex::rtree::RTree;
///
/// let mut tree = RTree::new(2);
/// tree.insert(((0.0, 0.0), (2.0, 4.0)), 1);
///
/// # tree.validate_consistency();
/// ```
Creates a new [`RTree`] with the given number of dimensions.
Creates a new [ ` RTree ` ] with the given number of dimensions .
pub fn new(dimension: usize) -> Self {
        let node = Node::new_internal_node(Region::infinite(dimension), None);
        let mut nodes = Arena::new();
        let root_index = nodes.insert(node);
        // TODO: figure out a better way to pass through min/max children here (maybe some sort of builder?)
        Self {
            nodes,
            root: root_index,
            min_children: 2,
            max_children: 8,
        }
    }
pub fn new ( dimension : usize ) -> Self { let node = Node :: new_internal_node ( Region :: infinite ( dimension ) , None ) ; let mut nodes = Arena :: new ( ) ; let root_index = nodes . insert ( node ) ; // TODO: figure out a better way to pass through min/max children here (maybe some sort of builder?) Self { nodes , root : root_index , min_children : 2 , max_children : 8 , } }
Creates a new [`RTree`] with the given number of dimensions.
Creates a new [ ` RTree ` ] with the given number of dimensions .
dimension
usize
dimension
usize
example
```rust
use spaceindex::rtree::RTree.


` ` ` rust use spaceindex :: rtree :: RTree .
tree.validate_consistency();
None