@Override public float noise(float x, float y) { int fx = TeraMath.floorToInt(x + 0.5f); int fy = TeraMath.floorToInt(y + 0.5f); return noise(fx, fy); } }
@Parameters(name = "{0}") public static Collection<Noise[]> data() { return Arrays.asList(new Noise[][]{ {new WhiteNoise(0xCAFE)}, {new DiscreteWhiteNoise(0xCAFE)}, {new SimplexNoise(0xCAFE)}, {new PerlinNoise(0xCAFE)}, {new BrownianNoise(new WhiteNoise(0xCAFE), 3)} }); }
@Override public float noise(float x, float y, float z) { int fx = TeraMath.floorToInt(x + 0.5f); int fy = TeraMath.floorToInt(y + 0.5f); int fz = TeraMath.floorToInt(z + 0.5f); return noise(fx, fy, fz); }