[][src]Struct zvxryb_broadphase::Bounds

pub struct Bounds<Point> {
    pub min: Point,
    pub max: Point,
}

An axis-aligned bounding box

Min and max values are inclusive

Fields

min: Pointmax: Point

Methods

impl<Point> Bounds<Point> where
    Point: EuclideanSpace + Array<Element = <Point as EuclideanSpace>::Scalar> + Copy
[src]

pub fn new(min: Point, max: Point) -> Self[src]

pub fn sizef(self) -> Point::Diff where
    Point::Scalar: Float
[src]

pub fn sizei(self) -> Point::Diff where
    Point::Scalar: PrimInt + One,
    Point::Diff: ElementWise<Point::Scalar>, 
[src]

pub fn overlaps(self, other: Bounds<Point>) -> bool[src]

pub fn contains(self, other: Bounds<Point>) -> bool[src]

pub fn center(self) -> Point[src]

Trait Implementations

impl<Point: Clone> Clone for Bounds<Point>[src]

impl<Point: Copy> Copy for Bounds<Point>[src]

impl<Point: Debug> Debug for Bounds<Point>[src]

impl<Index, Point> From<Index> for Bounds<Point> where
    Index: SpatialIndex<Diff = Point::Diff, Point = Point>,
    Point: EuclideanSpace<Scalar = u32> + ElementWise<u32>, 
[src]

impl<Point: PartialEq> PartialEq<Bounds<Point>> for Bounds<Point>[src]

impl<Point> StructuralPartialEq for Bounds<Point>[src]

impl<PointGlobal, PointLocal> SystemBounds<PointGlobal, PointLocal> for Bounds<PointGlobal> where
    PointGlobal: EuclideanSpace<Scalar = f32>,
    PointGlobal::Diff: Array<Element = f32>,
    PointLocal: EuclideanSpace<Scalar = u32>,
    PointLocal::Diff: Array<Element = u32>, 
[src]

Auto Trait Implementations

impl<Point> RefUnwindSafe for Bounds<Point> where
    Point: RefUnwindSafe

impl<Point> Send for Bounds<Point> where
    Point: Send

impl<Point> Sync for Bounds<Point> where
    Point: Sync

impl<Point> Unpin for Bounds<Point> where
    Point: Unpin

impl<Point> UnwindSafe for Bounds<Point> where
    Point: 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.