Trait broccoli::aabb::Aabb

source ·
pub trait Aabb {
    type Num: Num;

    // Required method
    fn get(&self) -> &Rect<Self::Num>;
}
Expand description

Trait to signify that this object has an axis aligned bounding box.

Required Associated Types§

Required Methods§

source

fn get(&self) -> &Rect<Self::Num>

Implementations on Foreign Types§

source§

impl<N: Num, T> Aabb for (Rect<N>, T)

§

type Num = N

source§

fn get(&self) -> &Rect<Self::Num>

source§

impl<N: Num, T> Aabb for &mut (Rect<N>, T)

§

type Num = N

source§

fn get(&self) -> &Rect<Self::Num>

Implementors§

source§

impl<N: Num> Aabb for Rect<N>

§

type Num = N

source§

impl<N: Num, T> Aabb for &mut BBox<N, T>

§

type Num = N

source§

impl<N: Num, T> Aabb for BBox<N, T>

§

type Num = N

source§

impl<N: Num, T> Aabb for BBoxMut<'_, N, T>

§

type Num = N

source§

impl<T: Aabb> Aabb for &mut ManySwappable<T>

§

type Num = <T as Aabb>::Num

source§

impl<T: Aabb> Aabb for ManySwappable<T>

§

type Num = <T as Aabb>::Num