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
value: V
The value
bound: B
The bounding volume
Methods
impl<V, B> TreeValueWrapped<V, B> where
B: Bound,
<B::Point as EuclideanSpace>::Diff: Debug,
[src]
B: Bound,
<B::Point as EuclideanSpace>::Diff: Debug,
pub fn new(
value: V,
bound: B,
margin: <B::Point as EuclideanSpace>::Diff
) -> Self
[src]
value: V,
bound: B,
margin: <B::Point as EuclideanSpace>::Diff
) -> Self
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]
B: Bound,
<B::Point as EuclideanSpace>::Diff: Debug,
B::Point: Debug,
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[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]
B: Bound,
<B::Point as EuclideanSpace>::Diff: Debug,
B::Point: Clone,
fn clone(&self) -> TreeValueWrapped<V, B>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
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]
V: Clone,
B: Bound + Clone,
<B::Point as EuclideanSpace>::Diff: Debug,
type Bound = B
Bounding volume type
fn bound(&self) -> &Self::Bound
[src]
Return the bounding volume of the value
fn get_bound_with_margin(&self) -> Self::Bound
[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]
B: Bound,
<B::Point as EuclideanSpace>::Diff: Debug,
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]
P: EuclideanSpace,
B: Bound<Point = P> + Clone,
P::Diff: Debug,
impl<V, B> From<(V, B)> for TreeValueWrapped<V, B> where
B: Bound + Clone,
<<B as Bound>::Point as EuclideanSpace>::Diff: Debug + Zero,
[src]
B: Bound + Clone,
<<B as Bound>::Point as EuclideanSpace>::Diff: Debug + Zero,
Auto Trait Implementations
impl<V, B> Send for TreeValueWrapped<V, B> where
B: Send,
V: Send,
<<B as Bound>::Point as EuclideanSpace>::Diff: Send,
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,
B: Sync,
V: Sync,
<<B as Bound>::Point as EuclideanSpace>::Diff: Sync,