Struct ncollide2df64::partitioning::RayInterferencesCollector
pub struct RayInterferencesCollector<'a, B> { // some fields omitted }
Bounding Volume Tree visitor collecting interferences with a given ray.
Methods
impl<'a, B> RayInterferencesCollector<'a, B>
fn new(ray: &'a Ray, buffer: &'a mut ~[B]) -> RayInterferencesCollector<'a, B>
Creates a new RayInterferencesCollector
.
Trait Implementations
impl<'a, B: Clone, BV: RayCast> BVTVisitor<B, BV> for RayInterferencesCollector<'a, B>
fn visit_internal(&mut self, bv: &BV) -> bool
Visits an internal node. Returns true
if the internal node children have to be visited
too.
fn visit_leaf(&mut self, b: &B, bv: &BV)
Visits a leaf.
fn visit_internal_mut(&mut self, bv: &mut BV) -> bool
Visits an internal node. Returns true
if the internal node children have to be visited
too.
fn visit_leaf_mut(&mut self, b: &mut B, bv: &mut BV)
Visits a leaf.