[−][src]Struct zvxryb_broadphase::Bounds
An axis-aligned bounding box
Min and max values are inclusive
Fields
min: Point
max: Point
Methods
impl<Point> Bounds<Point> where
Point: EuclideanSpace + Array<Element = <Point as EuclideanSpace>::Scalar> + Copy,
[src]
Point: EuclideanSpace + Array<Element = <Point as EuclideanSpace>::Scalar> + Copy,
pub fn new(min: Point, max: Point) -> Self
[src]
pub fn sizef(self) -> Point::Diff where
Point::Scalar: Float,
[src]
Point::Scalar: Float,
pub fn sizei(self) -> Point::Diff where
Point::Scalar: PrimInt + One,
Point::Diff: ElementWise<Point::Scalar>,
[src]
Point::Scalar: PrimInt + One,
Point::Diff: ElementWise<Point::Scalar>,
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]
Index: SpatialIndex<Diff = Point::Diff, Point = Point>,
Point: EuclideanSpace<Scalar = u32> + ElementWise<u32>,
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]
PointGlobal: EuclideanSpace<Scalar = f32>,
PointGlobal::Diff: Array<Element = f32>,
PointLocal: EuclideanSpace<Scalar = u32>,
PointLocal::Diff: Array<Element = u32>,
Auto Trait Implementations
impl<Point> RefUnwindSafe for Bounds<Point> where
Point: RefUnwindSafe,
Point: RefUnwindSafe,
impl<Point> Send for Bounds<Point> where
Point: Send,
Point: Send,
impl<Point> Sync for Bounds<Point> where
Point: Sync,
Point: Sync,
impl<Point> Unpin for Bounds<Point> where
Point: Unpin,
Point: Unpin,
impl<Point> UnwindSafe for Bounds<Point> where
Point: UnwindSafe,
Point: 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>,