[−][src]Struct collision::dbvt::TreeValueWrapped
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, 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]
fn get_bound_with_margin(&self) -> Self::Bound
[src]
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: 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]
default fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<V, B, P> From<(V, B, <P as EuclideanSpace>::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,
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,
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,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,