Beispiel #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());
 }
Beispiel #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();
 }
Beispiel #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();
 }
Beispiel #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());
 }