pub struct AabbRaycast;
Expand description
No fine-grained just cast to aabb
Trait Implementations
sourceimpl<T: Aabb> RayCast<T> for AabbRaycast where
T::Num: Debug + Signed,
impl<T: Aabb> RayCast<T> for AabbRaycast where
T::Num: Debug + Signed,
sourcefn cast_to_aaline<A: Axis>(
&mut self,
ray: &Ray<T::Num>,
line: A,
val: T::Num
) -> CastResult<T::Num>
fn cast_to_aaline<A: Axis>(
&mut self,
ray: &Ray<T::Num>,
line: A,
val: T::Num
) -> CastResult<T::Num>
Return the cast result to a axis aligned line of infinite length.
sourcefn cast_broad(
&mut self,
_ray: &Ray<T::Num>,
_a: AabbPin<&mut T>
) -> Option<CastResult<T::Num>>
fn cast_broad(
&mut self,
_ray: &Ray<T::Num>,
_a: AabbPin<&mut T>
) -> Option<CastResult<T::Num>>
Return the cast result that is cheap and overly conservative. It may be that the precise cast is fast enough, in which case you can simply return None. If None is desired, every call to this function for a particular element must always return None. Read more
Auto Trait Implementations
impl RefUnwindSafe for AabbRaycast
impl Send for AabbRaycast
impl Sync for AabbRaycast
impl Unpin for AabbRaycast
impl UnwindSafe for AabbRaycast
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more