예제 #1
0
 public void GetTurbulenceTest1d()
 {
     float[] f = new float[1];
     f[0] = .3f;
     perlin1d.GetPerlinTurbulence(f, 32.0f);
     Assert.IsTrue(f.Length == 1);
 }
예제 #2
0
 public void GetTurbulenceTest2d()
 {
     float[] f = new float[2];
     f[0] = .1f;
     f[1] = .2f;
     perlin2d.GetPerlinTurbulence(f, 32.0f);
     Assert.IsTrue(f.Length == 2);
 }
예제 #3
0
 public void GetTurbulenceTest3d()
 {
     float[] f = new float[3];
     f[0] = .1f;
     f[1] = .2f;
     f[2] = .3f;
     perlin3d.GetPerlinTurbulence(f, 32.0f);
     Assert.IsTrue(f.Length == 3);
 }
예제 #4
0
 public void GetTurbulenceTest4d()
 {
     float[] f = new float[4];
     f[0] = .1f;
     f[1] = .2f;
     f[2] = .3f;
     f[3] = .6f;
     perlin4d.GetPerlinTurbulence(f, 32.0f);
     Assert.IsTrue(f.Length == 4);
 }