Type Alias QuadtreeShapeU32

Source
pub type QuadtreeShapeU32 = ConstPow2Shape2u32<1, 1>;
Expand description

A BranchShape for unsigned quadtrees.

Aliased Type§

struct QuadtreeShapeU32;

Trait Implementations§

Source§

impl BranchShape<UVec2> for QuadtreeShapeU32

Source§

const SHAPE_SHIFTER: UVec2

The number of bits to shift each dimension in order to translate coordinates between adjacent Levels.
Source§

fn linearize_child(v: UVec2) -> ChildIndex

Source§

fn delinearize_child(i: ChildIndex) -> UVec2

Source§

fn parent_key(key: V) -> V

Source§

fn ancestor_key(key: V, levels_up: u32) -> V

Source§

fn min_child_key(key: V) -> V

Source§

fn min_descendant_key(key: V, levels_down: u32) -> V