[][src]Enum rust_3d::AABBTree2D

pub enum AABBTree2D<HB> where
    HB: HasBoundingBox2D + Clone
{ Empty, Leaf(AABBTree2DLeaf<HB>), Branch(AABBTree2DBranch<HB>), }

AABBTree2D, an axis aligned bounding box tree in 2D for fast collision detection

Variants

Empty
Leaf(AABBTree2DLeaf<HB>)
Branch(AABBTree2DBranch<HB>)

Implementations

impl<HB> AABBTree2D<HB> where
    HB: HasBoundingBox2D + Clone
[src]

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_collision_candidate<'a>(
    &'a self,
    bb: &BoundingBox2D,
    f: &mut dyn FnMut(&HB)
)
[src]

pub fn bb_colliding<'a>(&'a self, bb: &BoundingBox2D, 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]

Trait Implementations

impl<HB: Clone> Clone for AABBTree2D<HB> where
    HB: HasBoundingBox2D + Clone
[src]

Auto Trait Implementations

impl<HB> RefUnwindSafe for AABBTree2D<HB> where
    HB: RefUnwindSafe

impl<HB> Send for AABBTree2D<HB> where
    HB: Send

impl<HB> Sync for AABBTree2D<HB> where
    HB: Sync

impl<HB> Unpin for AABBTree2D<HB> where
    HB: Unpin

impl<HB> UnwindSafe for AABBTree2D<HB> where
    HB: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.