Trait SizedVol

Source
pub trait SizedVol: BaseVol {
    // Required methods
    fn lower_bound(&self) -> Vec3<i32>;
    fn upper_bound(&self) -> Vec3<i32>;

    // Provided method
    fn size(&self) -> Vec3<u32> { ... }
}
Expand description

A volume that is a cuboid.

Required Methods§

Source

fn lower_bound(&self) -> Vec3<i32>

Returns the (inclusive) lower bound of the volume.

Source

fn upper_bound(&self) -> Vec3<i32>

Returns the (exclusive) upper bound of the volume.

Provided Methods§

Source

fn size(&self) -> Vec3<u32>

Returns the size of the volume.

Implementors§

Source§

impl<V, M, A: Access> SizedVol for &Dyna<V, M, A>

Source§

impl<V, M, A: Access> SizedVol for Dyna<V, M, A>

Source§

impl<V: RasterableVol> SizedVol for V

Source§

impl<V: SizedVol> SizedVol for Scaled<V>