ncollide3d::partitioning

Trait BestFirstVisitor

Source
pub trait BestFirstVisitor<N, T, BV> {
    type Result;

    // Required method
    fn visit(
        &mut self,
        best_cost_so_far: N,
        bv: &BV,
        value: Option<&T>,
    ) -> BestFirstVisitStatus<N, Self::Result>;
}
Expand description

Trait implemented by cost functions used by the best-first search on a BVT.

Required Associated Types§

Source

type Result

The result of a best-first traversal.

Required Methods§

Source

fn visit( &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§