fn which_child(c: Vec3, p: Vec3) -> usize {
		match (p.x < c.x, p.y < c.y, p.z < c.z) {
			(true,  true,  true)  => 0,
			(true,  true,  false) => 1,
			(true,  false, true)  => 2,
			(true,  false, false) => 3,
			(false, true,  true)  => 4,
			(false, true,  false) => 5,
			(false, false, true)  => 6,
			(false, false, false) => 7,
		}
	}
/// Determine which child for a branch point
Determine which child for a branch point
Determine which child for a branch point
fn which_child(c: Vec3, p: Vec3) -> usize {
		match (p.x < c.x, p.y < c.y, p.z < c.z) {
			(true,  true,  true)  => 0,
			(true,  true,  false) => 1,
			(true,  false, true)  => 2,
			(true,  false, false) => 3,
			(false, true,  true)  => 4,
			(false, true,  false) => 5,
			(false, false, true)  => 6,
			(false, false, false) => 7,
		}
	}
fn which_child ( c : Vec3 , p : Vec3 ) -> usize { match ( p . x < c . x , p . y < c . y , p . z < c . z ) { ( true , true , true ) => 0 , ( true , true , false ) => 1 , ( true , false , true ) => 2 , ( true , false , false ) => 3 , ( false , true , true ) => 4 , ( false , true , false ) => 5 , ( false , false , true ) => 6 , ( false , false , false ) => 7 , } }
Determine which child for a branch point
Determine which child for a branch point
c
Vec3
p
Vec3