[−][src]Struct dinotree_alg::analyze::Assert
👎 Deprecated:
use the broccoli crate instead
Collection of functions that panics if the dinotree result differs from the naive solution. Should never panic unless invariants of the tree data struct have been violated.
Implementations
impl Assert
[src]
#[must_use]pub fn tree_invariants<A: Axis, T: Aabb>(tree: &DinoTree<'_, A, T>) -> bool
[src]
👎 Deprecated:
use the broccoli crate instead
Returns false if the tree's invariants are not met.
pub fn find_intersections_mut<A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>
)
[src]
tree: &mut DinoTree<'_, A, T>
)
👎 Deprecated:
use the broccoli crate instead
pub fn k_nearest_mut<Acc, A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>,
point: Vec2<T::Num>,
num: usize,
acc: &mut Acc,
broad: impl FnMut(&mut Acc, Vec2<T::Num>, &Rect<T::Num>) -> T::Num,
fine: impl FnMut(&mut Acc, Vec2<T::Num>, &T) -> T::Num,
rect: Rect<T::Num>
)
[src]
tree: &mut DinoTree<'_, A, T>,
point: Vec2<T::Num>,
num: usize,
acc: &mut Acc,
broad: impl FnMut(&mut Acc, Vec2<T::Num>, &Rect<T::Num>) -> T::Num,
fine: impl FnMut(&mut Acc, Vec2<T::Num>, &T) -> T::Num,
rect: Rect<T::Num>
)
👎 Deprecated:
use the broccoli crate instead
pub fn raycast_mut<Acc, A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>,
ray: Ray<T::Num>,
start: &mut Acc,
broad: impl FnMut(&mut Acc, &Ray<T::Num>, &Rect<T::Num>) -> CastResult<T::Num>,
fine: impl FnMut(&mut Acc, &Ray<T::Num>, &T) -> CastResult<T::Num>,
border: Rect<T::Num>
) where
<T as Aabb>::Num: Debug,
[src]
tree: &mut DinoTree<'_, A, T>,
ray: Ray<T::Num>,
start: &mut Acc,
broad: impl FnMut(&mut Acc, &Ray<T::Num>, &Rect<T::Num>) -> CastResult<T::Num>,
fine: impl FnMut(&mut Acc, &Ray<T::Num>, &T) -> CastResult<T::Num>,
border: Rect<T::Num>
) where
<T as Aabb>::Num: Debug,
👎 Deprecated:
use the broccoli crate instead
pub fn for_all_in_rect_mut<A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
[src]
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
👎 Deprecated:
use the broccoli crate instead
pub fn for_all_not_in_rect_mut<A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
[src]
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
👎 Deprecated:
use the broccoli crate instead
Panics if the result differs from the naive solution. Should never panic unless invariants of the tree data struct have been violated.
pub fn for_all_intersect_rect_mut<A: Axis, T: Aabb + HasInner>(
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
[src]
tree: &mut DinoTree<'_, A, T>,
rect: &Rect<T::Num>
)
👎 Deprecated:
use the broccoli crate instead
Auto Trait Implementations
impl RefUnwindSafe for Assert
impl Send for Assert
impl Sync for Assert
impl Unpin for Assert
impl UnwindSafe for Assert
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,