Trait grid_tree::BranchShape
source · [−]pub trait BranchShape<V> where
V: VectorKey, {
const SHAPE_SHIFTER: V;
fn linearize_child(offset: V) -> ChildIndex;
fn delinearize_child(i: ChildIndex) -> V;
fn parent_key(key: V) -> V { ... }
fn ancestor_key(key: V, levels_up: u32) -> V { ... }
fn min_child_key(key: V) -> V { ... }
fn min_descendant_key(key: V, levels_down: u32) -> V { ... }
}
Expand description
The shape of a single node’s children. E.g. 22 for a quadtree and 23 for an octree.
Associated Constants
const SHAPE_SHIFTER: V
const SHAPE_SHIFTER: V
The number of bits to shift each dimension in order to translate coordinates between adjacent Level
s.