pub fn to_cartesian(&self, p: isize) -> [f64; 3] {
        let x = (p / (self.size.y * self.size.z)) as f64;
        let y = (p / self.size.z).rem_euclid(self.size.y) as f64;
        let z = p.rem_euclid(self.size.z) as f64;
        let p = [x + self.voxel_origin[0],
                 y + self.voxel_origin[1],
                 z + self.voxel_origin[2]];
        dot(p, self.voxel_lattice.to_cartesian)
    }
/// Converts a point in the array to cartesian.
Converts a point in the array to cartesian.
Converts a point in the array to cartesian .
pub fn to_cartesian(&self, p: isize) -> [f64; 3] {
        let x = (p / (self.size.y * self.size.z)) as f64;
        let y = (p / self.size.z).rem_euclid(self.size.y) as f64;
        let z = p.rem_euclid(self.size.z) as f64;
        let p = [x + self.voxel_origin[0],
                 y + self.voxel_origin[1],
                 z + self.voxel_origin[2]];
        dot(p, self.voxel_lattice.to_cartesian)
    }
pub fn to_cartesian ( & self , p : isize ) -> [ f64 ; 3 ] { let x = ( p / ( self . size . y * self . size . z ) ) as f64 ; let y = ( p / self . size . z ) . rem_euclid ( self . size . y ) as f64 ; let z = p . rem_euclid ( self . size . z ) as f64 ; let p = [ x + self . voxel_origin [ 0 ] , y + self . voxel_origin [ 1 ] , z + self . voxel_origin [ 2 ] ] ; dot ( p , self . voxel_lattice . to_cartesian ) }
Converts a point in the array to cartesian.
Converts a point in the array to cartesian .
&self
p
isize
&self
p
isize