pub trait RaycastApi<T: Aabb> {
fn raycast_mut<R: RayCast<T>>(
&mut self,
ray: Ray<T::Num>,
a: R
) -> CastResult<CastAnswer<'_, T>>;
fn raycast_mut_aabb(
&mut self,
ray: Ray<T::Num>
) -> CastResult<CastAnswer<'_, T>>
where
T::Num: Debug + Signed,
{ ... }
fn raycast_mut_closure(
&mut self,
ray: Ray<T::Num>,
broad: impl FnMut(&Ray<T::Num>, AabbPin<&mut T>) -> Option<CastResult<T::Num>>,
fine: impl FnMut(&Ray<T::Num>, AabbPin<&mut T>) -> CastResult<T::Num>,
xline: impl FnMut(&Ray<T::Num>, T::Num) -> CastResult<T::Num>,
yline: impl FnMut(&Ray<T::Num>, T::Num) -> CastResult<T::Num>
) -> CastResult<CastAnswer<'_, T>> { ... }
}
Expand description
Make raycast queries
Required methods
fn raycast_mut<R: RayCast<T>>(
&mut self,
ray: Ray<T::Num>,
a: R
) -> CastResult<CastAnswer<'_, T>>
Provided methods
fn raycast_mut_aabb(
&mut self,
ray: Ray<T::Num>
) -> CastResult<CastAnswer<'_, T>> where
T::Num: Debug + Signed,
fn raycast_mut_aabb(
&mut self,
ray: Ray<T::Num>
) -> CastResult<CastAnswer<'_, T>> where
T::Num: Debug + Signed,
Create a handler that just casts directly to the axis aligned rectangle