/// **Note:** The lattice point is wrapped into the supercell.
The lattice point is wrapped into the supercell.
The lattice point is wrapped into the supercell .
pub fn cell_from_lattice_point(&self, v: V3<i32>) -> [u32; 3] {
        let diff = v - self.offset;
        let cell = V3::from_fn(|k| crate::util::mod_euc(diff[k], self.periods[k] as i32) as u32);
        cell.0
    }
pub fn cell_from_lattice_point ( & self , v : V3 < i32 > ) -> [ u32 ; 3 ] { let diff = v - self . offset ; let cell = V3 :: from_fn ( | k | crate :: util :: mod_euc ( diff [ k ] , self . periods [ k ] as i32 ) as u32 ) ; cell . 0 }
Note:** The lattice point is wrapped into the supercell.
Note : ** The lattice point is wrapped into the supercell .
&self
v
V3<i32>