示例#1
0
 public static Vector2 RoughnessStats(Biome[] biomes)
 {
     float[] roughness = new float[biomes.Length];
     for (int a = 0; a < biomes.Length; a++) { roughness[a] = biomes[a].Roughness; }
     return new Vector2(roughness.Average(), roughness.Std());
 }
示例#2
0
 public static float MeanElevation(Biome[] biomes)
 {
     float[] elevation = new float[biomes.Length];
     for (int a = 0; a < biomes.Length; a++) { elevation[a] = biomes[a].Elevation; }
     return elevation.Average();
 }
示例#3
0
 public static float MeanRoughness(Biome[] biomes)
 {
     float[] roughness = new float[biomes.Length];
     for (int a = 0; a < biomes.Length; a++) { roughness[a] = biomes[a].Roughness; }
     return roughness.Average();
 }
示例#4
0
 public static Vector2 ElevationStats(Biome[] biomes)
 {
     float[] elevation = new float[biomes.Length];
     for (int a = 0; a < biomes.Length; a++) { elevation[a] = biomes[a].Elevation; }
     return new Vector2(elevation.Average(), elevation.Std());
 }