pub fn voronoi_shifts(&self, p: isize) -> Vec<(isize, f64)> {
        self.voronoi
            .vectors
            .iter()
            .zip(&self.voronoi.alphas)
            .map(|(shifts, alpha)| {
                let mut pn = p;
                for p_shift in shifts.iter() {
                    pn += self.shift.get(pn)[*p_shift];
                }
                (pn, *alpha)
            })
            .collect()
    }
/// Shifts a point, p, by a single voronoi vector.
Shifts a point, p, by a single voronoi vector.
Shifts a point p by a single voronoi vector .
pub fn voronoi_shifts(&self, p: isize) -> Vec<(isize, f64)> {
        self.voronoi
            .vectors
            .iter()
            .zip(&self.voronoi.alphas)
            .map(|(shifts, alpha)| {
                let mut pn = p;
                for p_shift in shifts.iter() {
                    pn += self.shift.get(pn)[*p_shift];
                }
                (pn, *alpha)
            })
            .collect()
    }
pub fn voronoi_shifts ( & self , p : isize ) -> Vec < ( isize , f64 ) > { self . voronoi . vectors . iter ( ) . zip ( & self . voronoi . alphas ) . map ( | ( shifts , alpha ) | { let mut pn = p ; for p_shift in shifts . iter ( ) { pn += self . shift . get ( pn ) [ * p_shift ] ; } ( pn , * alpha ) } ) . collect ( ) }
Shifts a point, p, by a single voronoi vector.
Shifts a point p by a single voronoi vector .
&self
p
isize
&self
p
isize