[][src]Struct ncollide3d::partitioning::DBVT

pub struct DBVT<N: Real, T, BV> { /* fields omitted */ }

A bounding volume hierarchy on which objects can be added or removed after construction.

Methods

impl<N: Real, T, BV: BoundingVolume<N>> DBVT<N, T, BV>[src]

pub fn new() -> DBVT<N, T, BV>[src]

Creates a new empty dynamic bonding volume hierarchy.

pub fn root_bounding_volume(&self) -> Option<&BV>[src]

The bounding volume of the root of this DBVT.

Returns None if the DBVT is empty.

pub fn is_empty(&self) -> bool[src]

Indicates whether this DBVT empty.

pub fn insert(&mut self, leaf: DBVTLeaf<N, T, BV>) -> DBVTLeafId[src]

Inserts a leaf into this DBVT.

pub fn remove(&mut self, leaf_id: DBVTLeafId) -> DBVTLeaf<N, T, BV>[src]

Removes a leaf from this DBVT.

Panics if the provided leaf is not attached to this DBVT.

Trait Implementations

impl<'a, N: Real, T, BV> BVH<T, BV> for DBVT<N, T, BV>[src]

type Node = DBVTNodeId

Type of a node of this BVH.

fn visit(&self, visitor: &mut impl Visitor<T, BV>)[src]

Traverses this BVH using a visitor.

fn visit_bvtt(
    &self,
    other: &impl BVH<T, BV>,
    visitor: &mut impl SimultaneousVisitor<T, BV>
)
[src]

Visits the bounding volume test tree implicitly formed with other.

Performs a best-fist-search on the BVH. Read more

impl<N: Clone + Real, T: Clone, BV: Clone> Clone for DBVT<N, T, BV>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<N: Real, T, BV> Index<DBVTLeafId> for DBVT<N, T, BV>[src]

type Output = DBVTLeaf<N, T, BV>

The returned type after indexing.

Auto Trait Implementations

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

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

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]

impl<SS, SP> SupersetOf for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> Same for T

type Output = T

Should always be Self