[−][src]Trait ncollide2d::partitioning::BestFirstVisitor
Trait implemented by cost functions used by the best-first search on a BVT
.
Associated Types
type Result
The result of a best-first traversal.
Required methods
fn visit(
&mut self,
best_cost_so_far: N,
bv: &BV,
value: Option<&T>
) -> BestFirstVisitStatus<N, Self::Result>
&mut self,
best_cost_so_far: N,
bv: &BV,
value: Option<&T>
) -> BestFirstVisitStatus<N, Self::Result>
Compute the next action to be taken by the best-first-search after visiting a node containing the given bounding volume.
Implementors
impl<'a, N: RealField, S: CompositeShape<N> + PointQuery<N>> BestFirstVisitor<N, usize, AABB<N>> for CompositeClosestPointVisitor<'a, N, S>
[src]
type Result = PointProjection<N>
fn visit(
&mut self,
best: N,
aabb: &AABB<N>,
data: Option<&usize>
) -> BestFirstVisitStatus<N, Self::Result>
[src]
&mut self,
best: N,
aabb: &AABB<N>,
data: Option<&usize>
) -> BestFirstVisitStatus<N, Self::Result>