Trait collision::dbvt::TreeValue
[−]
[src]
pub trait TreeValue: Clone { type Bound; fn bound(&self) -> &Self::Bound; fn get_bound_with_margin(&self) -> Self::Bound; }
Trait that needs to be implemented for any value that is to be used in the
DynamicBoundingVolumeTree
.
Associated Types
type Bound
Bounding volume type
Required Methods
fn bound(&self) -> &Self::Bound
Return the bounding volume of the value
fn get_bound_with_margin(&self) -> Self::Bound
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.
Implementors
impl<V, B> TreeValue for TreeValueWrapped<V, B> where
V: Clone,
B: Bound + Clone,
<B::Point as EuclideanSpace>::Diff: Debug, type Bound = B;