pub type Orthtree<const X: usize, const D: usize, S, Data> = Tree<Node<SizedOrthant<X, D, NodeID, S>>, Data>;
Expand description
N-dimensional generalisation of quadtrees/octrees.
Aliased Type§
pub struct Orthtree<const X: usize, const D: usize, S, Data> {
pub nodes: Vec<Node<SizedOrthant<X, D, u32, S>>>,
pub data: Vec<Data>,
}
Fields§
§nodes: Vec<Node<SizedOrthant<X, D, u32, S>>>
Vector of Node
objects that define the structure of the tree.
data: Vec<Data>
Vector of generic Data
objects that contain information about the associated Node
.
The data
vector is parallel to the nodes
vector, so the i
-th element of the data
vector corresponds to the i
-th element of the nodes
vector.