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