[−][src]Enum rust_3d::AABBTree3D
AABBTree3D, an axis aligned bounding box tree in 3D for fast collision detection
Variants
Implementations
impl<HB> AABBTree3D<HB> where
HB: HasBoundingBox3D + Clone,
[src]
HB: HasBoundingBox3D + Clone,
pub fn new(data: Vec<HB>, maxdepth: usize, allowed_bucket_size: usize) -> Self
[src]
pub fn any<'a>(&'a self, f: &dyn Fn(&HB) -> bool) -> bool
[src]
pub fn for_each_intersection_candidate<'a>(
&'a self,
line: &Line3D,
f: &mut dyn FnMut(&HB)
)
[src]
&'a self,
line: &Line3D,
f: &mut dyn FnMut(&HB)
)
pub fn for_each_collision_candidate<'a>(
&'a self,
bb: &BoundingBox3D,
f: &mut dyn FnMut(&HB)
)
[src]
&'a self,
bb: &BoundingBox3D,
f: &mut dyn FnMut(&HB)
)
pub fn bb_colliding<'a>(&'a self, bb: &BoundingBox3D, result: &mut Vec<&'a HB>)
[src]
pub fn bb_crossing_x_value<'a>(&'a self, x: f64, result: &mut Vec<&'a HB>)
[src]
pub fn bb_crossing_y_value<'a>(&'a self, y: f64, result: &mut Vec<&'a HB>)
[src]
pub fn bb_crossing_z_value<'a>(&'a self, z: f64, result: &mut Vec<&'a HB>)
[src]
Trait Implementations
impl<HB: Clone> Clone for AABBTree3D<HB> where
HB: HasBoundingBox3D + Clone,
[src]
HB: HasBoundingBox3D + Clone,
fn clone(&self) -> AABBTree3D<HB>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<HB> IsColliderContainer3D for AABBTree3D<HB> where
HB: Clone + HasColliders3D + Sized,
[src]
HB: Clone + HasColliders3D + Sized,
fn any_element_collides_with_collider(&self, other: &dyn HasColliders3D) -> bool
[src]
fn any_element_collides_with_bounding(
&self,
other: &dyn HasBoundingBox3D
) -> bool
[src]
&self,
other: &dyn HasBoundingBox3D
) -> bool
Auto Trait Implementations
impl<HB> RefUnwindSafe for AABBTree3D<HB> where
HB: RefUnwindSafe,
HB: RefUnwindSafe,
impl<HB> Send for AABBTree3D<HB> where
HB: Send,
HB: Send,
impl<HB> Sync for AABBTree3D<HB> where
HB: Sync,
HB: Sync,
impl<HB> Unpin for AABBTree3D<HB> where
HB: Unpin,
HB: Unpin,
impl<HB> UnwindSafe for AABBTree3D<HB> where
HB: UnwindSafe,
HB: UnwindSafe,
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,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,