[−][src]Struct collision::dbvt::DiscreteVisitor
Visitor for doing discrete intersection testing on the DBVT.
Will return () for intersections with the
Discrete
implementation
of bound.intersects(self.bound).
Methods
impl<'a, B: 'a, T> DiscreteVisitor<'a, B, T> where
T: TreeValue,
T::Bound: Discrete<B>,
[src]
T: TreeValue,
T::Bound: Discrete<B>,
pub fn new(bound: &'a B) -> Self
[src]
Create a new visitor that will do discrete intersection tests using the given bound.
Trait Implementations
impl<'a, B: 'a, T> Visitor for DiscreteVisitor<'a, B, T> where
T: TreeValue,
T::Bound: Discrete<B>,
[src]
T: TreeValue,
T::Bound: Discrete<B>,
type Bound = T::Bound
Bounding volume accepted by the visitor
type Result = ()
Result returned by the acceptance test
fn accept(&mut self, bound: &Self::Bound, _: bool) -> Option<()>
[src]
impl<'a, B: Debug + 'a, T: Debug> Debug for DiscreteVisitor<'a, B, T>
[src]
Auto Trait Implementations
impl<'a, B, T> Send for DiscreteVisitor<'a, B, T> where
B: Sync,
T: Send,
B: Sync,
T: Send,
impl<'a, B, T> Sync for DiscreteVisitor<'a, B, T> where
B: Sync,
T: Sync,
B: Sync,
T: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?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>,