[][src]Struct n5::ndarray::BoundingBox

pub struct BoundingBox { /* fields omitted */ }

Specifes the extents of an axis-aligned bounding box.

Implementations

impl BoundingBox[src]

pub fn new(offset: GridCoord, size: GridCoord) -> BoundingBox[src]

pub fn size_block(&self) -> BlockCoord[src]

pub fn size_ndarray_shape(&self) -> CoordVec<usize>[src]

pub fn intersect(&mut self, other: &BoundingBox)[src]

let mut a = BoundingBox::new(smallvec![0, 0], smallvec![5, 8]);
let b = BoundingBox::new(smallvec![3, 3], smallvec![5, 3]);
let c = BoundingBox::new(smallvec![3, 3], smallvec![2, 3]);
a.intersect(&b);
assert_eq!(a, c);

pub fn union(&mut self, other: &BoundingBox)[src]

let mut a = BoundingBox::new(smallvec![0, 0], smallvec![5, 8]);
let b = BoundingBox::new(smallvec![3, 3], smallvec![5, 3]);
let c = BoundingBox::new(smallvec![0, 0], smallvec![8, 8]);
a.union(&b);
assert_eq!(a, c);

pub fn end(&self) -> impl Iterator<Item = u64> + '_[src]

pub fn to_ndarray_slice(&self) -> CoordVec<SliceOrIndex>[src]

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Clone for BoundingBox[src]

impl Debug for BoundingBox[src]

impl Eq for BoundingBox[src]

impl PartialEq<BoundingBox> for BoundingBox[src]

impl StructuralEq for BoundingBox[src]

impl StructuralPartialEq for BoundingBox[src]

impl<'_> Sub<&'_ SmallVec<[u64; 6]>> for BoundingBox[src]

type Output = Self

The resulting type after applying the - operator.

Auto Trait Implementations

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.