Struct ncollide3d::query::RayIntersectionCostFn
[−]
[src]
pub struct RayIntersectionCostFn<'a, N: 'a + Real> { /* fields omitted */ }
A search thet selects the objects that has the smallest time of impact with a given ray.
Methods
impl<'a, N: Real> RayIntersectionCostFn<'a, N>
[src]
pub fn new(
ray: &'a Ray<N>,
solid: bool,
uvs: bool
) -> RayIntersectionCostFn<'a, N>
[src]
ray: &'a Ray<N>,
solid: bool,
uvs: bool
) -> RayIntersectionCostFn<'a, N>
Creates a new BestRayInterferenceSearch
.
Trait Implementations
impl<'a, N, B, BV> BVTCostFn<N, B, BV> for RayIntersectionCostFn<'a, N> where
N: Real,
B: RayCast<N>,
BV: RayCast<N>,
[src]
N: Real,
B: RayCast<N>,
BV: RayCast<N>,
type UserData = RayIntersection<N>
User-defined data attached to each BVT leaf.
fn compute_bv_cost(&mut self, bv: &BV) -> Option<N>
[src]
Computes the cost of a bounding volume.
fn compute_b_cost(&mut self, b: &B) -> Option<(N, RayIntersection<N>)>
[src]
Computes the cost of an object, and the result to be returned if it is the best one.