Struct ncollide3d::partitioning::DBVTLeaf [−][src]
pub struct DBVTLeaf<N: Real, B, BV> { pub bounding_volume: BV, pub center: Point<N>, pub data: B, // some fields omitted }
Leaf of a Dynamic Bounding Volume Tree.
Fields
bounding_volume: BV
The bounding volume of this node.
center: Point<N>
The center of this node bounding volume.
data: B
An user-defined data.
Methods
impl<N: Real, B, BV: BoundingVolume<N>> DBVTLeaf<N, B, BV>
[src]
impl<N: Real, B, BV: BoundingVolume<N>> DBVTLeaf<N, B, BV>
pub fn new(bounding_volume: BV, data: B) -> DBVTLeaf<N, B, BV>
[src]
pub fn new(bounding_volume: BV, data: B) -> DBVTLeaf<N, B, BV>
Creates a new DBVT leaf from its bounding volume and contained data.
pub fn is_root(&self) -> bool
[src]
pub fn is_root(&self) -> bool
Returns true
if this leaf is the root of the tree, or if it detached from any tree.