[][src]Trait ncollide3d::partitioning::BVTCostFn

pub trait BVTCostFn<N, B, BV> {
    type UserData;
    fn compute_bv_cost(&mut self, _: &BV) -> Option<N>;
fn compute_b_cost(&mut self, _: &B) -> Option<(N, Self::UserData)>; }

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

Associated Types

User-defined data attached to each BVT leaf.

Required Methods

Computes the cost of a bounding volume.

Computes the cost of an object, and the result to be returned if it is the best one.

Implementors

impl<'a, N, B, BV> BVTCostFn<N, B, BV> for RayIntersectionCostFn<'a, N> where
    N: Real,
    B: RayCast<N>,
    BV: RayCast<N>, 
[src]