[−][src]Struct n5::ndarray::BoundingBox
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]
fn clone(&self) -> BoundingBox
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for BoundingBox
[src]
impl Eq for BoundingBox
[src]
impl PartialEq<BoundingBox> for BoundingBox
[src]
fn eq(&self, other: &BoundingBox) -> bool
[src]
fn ne(&self, other: &BoundingBox) -> bool
[src]
impl StructuralEq for BoundingBox
[src]
impl StructuralPartialEq for BoundingBox
[src]
impl<'_> Sub<&'_ SmallVec<[u64; 6]>> for BoundingBox
[src]
Auto Trait Implementations
impl RefUnwindSafe for BoundingBox
impl Send for BoundingBox
impl Sync for BoundingBox
impl Unpin for BoundingBox
impl UnwindSafe for BoundingBox
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>,