pub fn vec3_permutef(v: &Vector3f, x: usize, y: usize, z: usize) -> Vector3f {
    let v3: [Float; 3] = [v.x, v.y, v.z];
    let xp: Float = v3[x];
    let yp: Float = v3[y];
    let zp: Float = v3[z];
    Vector3f {
        x: xp,
        y: yp,
        z: zp,
    }
}
/// Permute the coordinate values according to the povided
/// permutation.
Permute the coordinate values according to the povided
permutation.
Permute the coordinate values according to the povided permutation .
pub fn vec3_permutef(v: &Vector3f, x: usize, y: usize, z: usize) -> Vector3f {
    let v3: [Float; 3] = [v.x, v.y, v.z];
    let xp: Float = v3[x];
    let yp: Float = v3[y];
    let zp: Float = v3[z];
    Vector3f {
        x: xp,
        y: yp,
        z: zp,
    }
}
pub fn vec3_permutef ( v : & Vector3f , x : usize , y : usize , z : usize ) -> Vector3f { let v3 : [ Float ; 3 ] = [ v . x , v . y , v . z ] ; let xp : Float = v3 [ x ] ; let yp : Float = v3 [ y ] ; let zp : Float = v3 [ z ] ; Vector3f { x : xp , y : yp , z : zp , } }
Permute the coordinate values according to the povided
permutation.
Permute the coordinate values according to the povided permutation .
v
&Vector3f
x
usize
y
usize
z
usize