Struct collision::dbvt::TreeValueWrapped [] [src]

pub struct TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
{ pub value: V, pub bound: B, // some fields omitted }

Value together with bounding volume, for use with DBVT.

Fields

The value

The bounding volume

Methods

impl<V, B> TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

[src]

Create a new shape

Trait Implementations

impl<V: Debug, B: Debug> Debug for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug,
    B::Point: Debug
[src]

[src]

Formats the value using the given formatter. Read more

impl<V: Clone, B: Clone> Clone for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug,
    B::Point: Clone
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<V, B> TreeValue for TreeValueWrapped<V, B> where
    V: Clone,
    B: Bound + Clone,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

Bounding volume type

[src]

Return the bounding volume of the value

[src]

Return a fattened bounding volume. For shapes that do not move, this can be the same as the base bounding volume. It is recommended for moving shapes to have a larger fat bound, so tree rotations don't have to be performed every frame. Read more

impl<V, B> HasBound for TreeValueWrapped<V, B> where
    B: Bound,
    <B::Point as EuclideanSpace>::Diff: Debug
[src]

Bounding volume type

[src]

Borrow the bounding volume

impl<V, B, P> From<(V, B, P::Diff)> for TreeValueWrapped<V, B> where
    P: EuclideanSpace,
    B: Bound<Point = P> + Clone,
    P::Diff: Debug
[src]

[src]

Performs the conversion.

impl<V, B> From<(V, B)> for TreeValueWrapped<V, B> where
    B: Bound + Clone,
    <<B as Bound>::Point as EuclideanSpace>::Diff: Debug + Zero
[src]

[src]

Performs the conversion.

Auto Trait Implementations

impl<V, B> Send for TreeValueWrapped<V, B> where
    B: Send,
    V: Send,
    <<B as Bound>::Point as EuclideanSpace>::Diff: Send

impl<V, B> Sync for TreeValueWrapped<V, B> where
    B: Sync,
    V: Sync,
    <<B as Bound>::Point as EuclideanSpace>::Diff: Sync