Struct ncollide3d::query::visitors::RayIntersectionCostFnVisitor [−][src]
pub struct RayIntersectionCostFnVisitor<'a, 'b, N: 'a + RealField, T, BV> where
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync, { /* fields omitted */ }
Bounding Volume Tree visitor collecting interferences with a given ray.
Implementations
impl<'a, 'b, N: RealField, T, BV> RayIntersectionCostFnVisitor<'a, 'b, N, T, BV> where
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync,
[src]
impl<'a, 'b, N: RealField, T, BV> RayIntersectionCostFnVisitor<'a, 'b, N, T, BV> where
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync,
[src]pub fn new(
ray: &'b Ray<N>,
max_toi: N,
broad_phase: &'a dyn BroadPhase<N, BV, T>,
cost_fn: &'a dyn Fn(T, &'b Ray<N>, N) -> Option<(T, RayIntersection<N>)>
) -> RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
[src]
ray: &'b Ray<N>,
max_toi: N,
broad_phase: &'a dyn BroadPhase<N, BV, T>,
cost_fn: &'a dyn Fn(T, &'b Ray<N>, N) -> Option<(T, RayIntersection<N>)>
) -> RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
Creates a new RayIntersectionCostFnVisitor
.
Trait Implementations
impl<'a, 'b, N, BV, T> BestFirstVisitor<N, BroadPhaseProxyHandle, BV> for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV> where
N: RealField,
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync + Clone,
[src]
impl<'a, 'b, N, BV, T> BestFirstVisitor<N, BroadPhaseProxyHandle, BV> for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV> where
N: RealField,
BV: BoundingVolume<N> + RayCast<N> + PointQuery<N> + Any + Send + Sync + Clone,
T: Any + Send + Sync + Clone,
[src]type Result = (T, RayIntersection<N>)
The result of a best-first traversal.
fn visit(
&mut self,
best_cost_so_far: N,
bv: &BV,
data: Option<&BroadPhaseProxyHandle>
) -> BestFirstVisitStatus<N, Self::Result>
[src]
&mut self,
best_cost_so_far: N,
bv: &BV,
data: Option<&BroadPhaseProxyHandle>
) -> BestFirstVisitStatus<N, Self::Result>
Auto Trait Implementations
impl<'a, 'b, N, T, BV> !RefUnwindSafe for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
impl<'a, 'b, N, T, BV> !Send for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
impl<'a, 'b, N, T, BV> !Sync for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
impl<'a, 'b, N, T, BV> Unpin for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV> where
N: Unpin,
'b: 'a,
N: Unpin,
'b: 'a,
impl<'a, 'b, N, T, BV> !UnwindSafe for RayIntersectionCostFnVisitor<'a, 'b, N, T, BV>
Blanket Implementations
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]
impl<T> DowncastSync for T where
T: Any + Send + Sync,
[src]impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
[src]