[][src]Trait collision::dbvt::Visitor

pub trait Visitor {
    type Bound;
    type Result;
    fn accept(
        &mut self,
        bound: &Self::Bound,
        is_leaf: bool
    ) -> Option<Self::Result>; }

Visitor trait used for querying the tree.

Associated Types

type Bound

Bounding volume accepted by the visitor

type Result

Result returned by the acceptance test

Loading content...

Required methods

fn accept(&mut self, bound: &Self::Bound, is_leaf: bool) -> Option<Self::Result>

Acceptance test function

Loading content...

Implementors

impl<'a, B: 'a, T> Visitor for ContinuousVisitor<'a, B, T> where
    T: TreeValue,
    T::Bound: Continuous<B> + Discrete<B>, 
[src]

type Bound = T::Bound

type Result = <T::Bound as Continuous<B>>::Result

impl<'a, B: 'a, T> Visitor for DiscreteVisitor<'a, B, T> where
    T: TreeValue,
    T::Bound: Discrete<B>, 
[src]

type Bound = T::Bound

type Result = ()

impl<'a, S, T> Visitor for FrustumVisitor<'a, S, T> where
    S: BaseFloat,
    T: TreeValue,
    T::Bound: PlaneBound<S>, 
[src]

type Bound = T::Bound

type Result = Relation

Loading content...