[][src]Struct ncollide3d::partitioning::DBVTLeaf

pub struct DBVTLeaf<N: RealField, T, BV> {
    pub bounding_volume: BV,
    pub center: Point<N>,
    pub data: T,
    // 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: T

An user-defined data.

Methods

impl<N: RealField, T, BV: BoundingVolume<N>> DBVTLeaf<N, T, BV>[src]

pub fn new(bounding_volume: BV, data: T) -> DBVTLeaf<N, T, BV>[src]

Creates a new DBVT leaf from its bounding volume and contained data.

pub 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<N: Clone + RealField, T: Clone, BV: Clone> Clone for DBVTLeaf<N, T, BV>[src]

Auto Trait Implementations

impl<N, T, BV> RefUnwindSafe for DBVTLeaf<N, T, BV> where
    BV: RefUnwindSafe,
    N: RefUnwindSafe + Scalar,
    T: RefUnwindSafe

impl<N, T, BV> Send for DBVTLeaf<N, T, BV> where
    BV: Send,
    N: Scalar,
    T: Send

impl<N, T, BV> Sync for DBVTLeaf<N, T, BV> where
    BV: Sync,
    N: Scalar,
    T: Sync

impl<N, T, BV> Unpin for DBVTLeaf<N, T, BV> where
    BV: Unpin,
    N: Scalar + Unpin,
    T: Unpin

impl<N, T, BV> UnwindSafe for DBVTLeaf<N, T, BV> where
    BV: UnwindSafe,
    N: Scalar + UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,