[−][src]Trait ncollide_geometry::partitioning::BVTCostFn
Trait implemented by cost functions used by the best-first search on a BVT
.
Associated Types
type UserData
User-defined data attached to each BVT leaf.
Required methods
fn compute_bv_cost(&mut self, _: &BV) -> Option<N>
Computes the cost of a bounding volume.
fn compute_b_cost(&mut self, _: &B) -> Option<(N, Self::UserData)>
Computes the cost of an object, and the result to be returned if it is the best one.
Implementors
impl<'a, P, B, BV> BVTCostFn<<P as EuclideanSpace>::Real, B, BV> for RayIntersectionCostFn<'a, P> where
P: Point,
B: RayCast<P, Id>,
BV: RayCast<P, Id>,
[src]
P: Point,
B: RayCast<P, Id>,
BV: RayCast<P, Id>,
type UserData = RayIntersection<P::Vector>
fn compute_bv_cost(&mut self, bv: &BV) -> Option<P::Real>
[src]
fn compute_b_cost(
&mut self,
b: &B
) -> Option<(P::Real, RayIntersection<P::Vector>)>
[src]
&mut self,
b: &B
) -> Option<(P::Real, RayIntersection<P::Vector>)>