Struct box_intersect_ze::boxes::BoxND [−][src]
pub struct BoxND<B, const N: usize> { /* fields omitted */ }
A generic N
-dimensional box with bounds of type B
Implementations
impl<B: Copy, const N: usize> BoxND<B, N>
[src]
pub fn new(min: [B; N], max: [B; N]) -> Self
[src]
Creates a new box. The low and high boundaries of the box
will be min
and max
, indexed by dimension.
Trait Implementations
impl<B, const N: usize> BBox for BoxND<B, N> where
B: Copy + PartialOrd,
[src]
B: Copy + PartialOrd,
const DIM: usize
[src]
type Num = B
fn lo(&self, dim: usize) -> Self::Num
[src]
fn hi(&self, dim: usize) -> Self::Num
[src]
fn contains_in(&self, dim: usize, point: Self::Num) -> bool
[src]
fn intersects_in(&self, dim: usize, lo: Self::Num, hi: Self::Num) -> bool
[src]
fn intersects(&self, other: &Self) -> bool
[src]
impl<B: Clone, const N: usize> Clone for BoxND<B, N>
[src]
impl<B: Copy, const N: usize> Copy for BoxND<B, N>
[src]
impl<B: Debug, const N: usize> Debug for BoxND<B, N>
[src]
Auto Trait Implementations
impl<B, const N: usize> RefUnwindSafe for BoxND<B, N> where
B: RefUnwindSafe,
B: RefUnwindSafe,
impl<B, const N: usize> Send for BoxND<B, N> where
B: Send,
B: Send,
impl<B, const N: usize> Sync for BoxND<B, N> where
B: Sync,
B: Sync,
impl<B, const N: usize> Unpin for BoxND<B, N> where
B: Unpin,
B: Unpin,
impl<B, const N: usize> UnwindSafe for BoxND<B, N> where
B: UnwindSafe,
B: 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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,