pub fn to_reduced(&self, p: [f64; 3]) -> [f64; 3] {
        let mut frac = utils::dot(p, self.to_fractional);
        for f in &mut frac {
            *f = f.rem_euclid(1.);
        }
        utils::dot(frac, self.to_cartesian)
    }
/// Wraps a cartesian position into the reduced basis.
Wraps a cartesian position into the reduced basis.
Wraps a cartesian position into the reduced basis .
pub fn to_reduced(&self, p: [f64; 3]) -> [f64; 3] {
        let mut frac = utils::dot(p, self.to_fractional);
        for f in &mut frac {
            *f = f.rem_euclid(1.);
        }
        utils::dot(frac, self.to_cartesian)
    }
pub fn to_reduced ( & self , p : [ f64 ; 3 ] ) -> [ f64 ; 3 ] { let mut frac = utils :: dot ( p , self . to_fractional ) ; for f in & mut frac { * f = f . rem_euclid ( 1. ) ; } utils :: dot ( frac , self . to_cartesian ) }
Wraps a cartesian position into the reduced basis.
Wraps a cartesian position into the reduced basis .
&self
p
[f64; 3]
&self
p
[f64; 3]