pub fn grad_dot(hash: usize, x: f32, y: f32, z: f32) -> f32
Calculate the f32 dot product used by vanilla Perlin noise.