local function eval(perlin,x,y,z) local rot = perlin.rot x,y,z = x or 0, y or 0, z or 0 x = perlin.x + (x * rot[1] + y * rot[2] + z * rot[3]) y = perlin.y + (x * rot[4] + y * rot[5] + z * rot[6]) z = perlin.z + (x * rot[7] + y * rot[8] + z * rot[9]) return SCUtil.PerlinNoise(x,y,z) end