[][src]Trait rust_3d::IsVoxelImage

pub trait IsVoxelImage<T> {
    fn size_x(&self) -> usize;
fn size_y(&self) -> usize;
fn size_z(&self) -> usize;
fn voxel(&self, x: usize, y: usize, z: usize) -> Result<T>; }

IsVoxelImage is a trait used for any type of voxel image

Required methods

fn size_x(&self) -> usize

Should return the number of voxels in x-direction

fn size_y(&self) -> usize

Should return the number of voxels in y-direction

fn size_z(&self) -> usize

Should return the number of voxels in z-direction

fn voxel(&self, x: usize, y: usize, z: usize) -> Result<T>

Should return the voxel at a given x y z coordinate

Loading content...

Implementors

Loading content...