[][src]Trait oxygengine_physics_2d::prelude::ncollide2d::partitioning::Visitor

pub trait Visitor<T, BV> {
    fn visit(&mut self, bv: &BV, data: Option<&T>) -> VisitStatus;
}

Trait implemented by visitor called during the traversal of a spatial partitioning data structure.

Required methods

fn visit(&mut self, bv: &BV, data: Option<&T>) -> VisitStatus

Execute an operation on the content of a node of the spatial partitioning structure.

Returns whether the traversal should continue on the node's children, if it should not continue on those children, or if the whole traversal should be exited early.

Loading content...

Implementors

impl<'a, N, BV, S> Visitor<usize, BV> for CompositePointContainmentTest<'a, N, S> where
    BV: BoundingVolume<N> + PointQuery<N>,
    N: RealField,
    S: CompositeShape<N>, 
[src]

impl<'a, N, T, BV> Visitor<T, BV> for BoundingVolumeInterferencesCollector<'a, N, T, BV> where
    BV: BoundingVolume<N>,
    N: RealField,
    T: Clone
[src]

impl<'a, N, T, BV> Visitor<T, BV> for PointInterferencesCollector<'a, N, T> where
    BV: PointQuery<N>,
    N: RealField,
    T: Clone
[src]

impl<'a, N, T, BV> Visitor<T, BV> for RayInterferencesCollector<'a, N, T> where
    BV: RayCast<N>,
    N: RealField,
    T: Clone
[src]

Loading content...