示例#1
0
 public void GetPerlinTest1d()
 {
     float[] f = new float[1];
     f[0] = .3f;
     perlin1d.GetPerlinNoise(f);
     Assert.IsTrue(f.Length == 1);
 }
示例#2
0
 public void GetPerlinTest2d()
 {
     float[] f = new float[2];
     f[0] = .1f;
     f[1] = .2f;
     perlin2d.GetPerlinNoise(f);
     Assert.IsTrue(f.Length == 2);
 }
示例#3
0
 public void GetPerlinTest3d()
 {
     float[] f = new float[3];
     f[0] = .1f;
     f[1] = .2f;
     f[2] = .3f;
     perlin3d.GetPerlinNoise(f);
     Assert.IsTrue(f.Length == 3);
 }
示例#4
0
 public void GetPerlinTest4d()
 {
     float[] f = new float[4];
     f[0] = .1f;
     f[1] = .2f;
     f[2] = .3f;
     f[3] = .6f;
     perlin4d.GetPerlinNoise(f);
     Assert.IsTrue(f.Length == 4);
 }