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