[][src]Function broccoli::with_axis

pub fn with_axis<'a, A: Axis, T: Aabb>(
    axis: A,
    bots: &'a mut [T]
) -> Tree<'a, A, T>

Create a Tree using a specified axis.

Examples

 let mut bots = [axgeom::rect(0,10,0,10)];
 let tree = broccoli::with_axis(axgeom::XAXIS,&mut bots);