pub fn volume(&self) -> f64 {
        let volume = match self.shape {
            CellShape::Infinite => 0.0,
            CellShape::Orthorhombic => self.a() * self.b() * self.c(),
            CellShape::Triclinic => {
                // The volume is the mixed product of the three cell vectors
                let a = self.vect_a();
                let b = self.vect_b();
                let c = self.vect_c();
                a * (b ^ c)
            }
        };
        assert!(volume >= 0.0, "Volume is not positive!");
        return volume;
    }
/// Get the volume of the cell
Get the volume of the cell
Get the volume of the cell
pub fn volume(&self) -> f64 {
        let volume = match self.shape {
            CellShape::Infinite => 0.0,
            CellShape::Orthorhombic => self.a() * self.b() * self.c(),
            CellShape::Triclinic => {
                // The volume is the mixed product of the three cell vectors
                let a = self.vect_a();
                let b = self.vect_b();
                let c = self.vect_c();
                a * (b ^ c)
            }
        };
        assert!(volume >= 0.0, "Volume is not positive!");
        return volume;
    }
pub fn volume ( & self ) -> f64 { let volume = match self . shape { CellShape :: Infinite => 0.0 , CellShape :: Orthorhombic => self . a ( ) * self . b ( ) * self . c ( ) , CellShape :: Triclinic => { // The volume is the mixed product of the three cell vectors let a = self . vect_a ( ) ; let b = self . vect_b ( ) ; let c = self . vect_c ( ) ; a * ( b ^ c ) } } ; assert ! ( volume 0.0 " " ) ; return volume ; }
Get the volume of the cell
Get the volume of the cell
&self