[−][src]Struct ncollide_geometry::query::ray_internal::RayIntersectionCostFn
A search thet selects the objects that has the smallest time of impact with a given ray.
Methods
impl<'a, P: Point> RayIntersectionCostFn<'a, P>
[src]
pub fn new(
ray: &'a Ray<P>,
solid: bool,
uvs: bool
) -> RayIntersectionCostFn<'a, P>
[src]
ray: &'a Ray<P>,
solid: bool,
uvs: bool
) -> RayIntersectionCostFn<'a, P>
Creates a new BestRayInterferenceSearch
.
Trait Implementations
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>
User-defined data attached to each BVT leaf.
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>)>
Auto Trait Implementations
impl<'a, P> Send for RayIntersectionCostFn<'a, P> where
<P as Point>::Vector: Sync,
<P as Point>::Vector: Sync,
impl<'a, P> Sync for RayIntersectionCostFn<'a, P> where
<P as Point>::Vector: Sync,
<P as Point>::Vector: Sync,
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<SS, SP> SupersetOf for SP where
SS: SubsetOf<SP>,
[src]
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
[src]
fn is_in_subset(&self) -> bool
[src]
unsafe fn to_subset_unchecked(&self) -> SS
[src]
fn from_subset(element: &SS) -> SP
[src]
impl<T> Same for T
type Output = T
Should always be Self