Example #1
0
 private static float GetSquaredDistance(Biome biome, float temp, float rain)
 {
     return(MathF.Abs((biome.Temperature - temp) * (biome.Temperature - temp) + (biome.Downfall - rain) * (biome.Downfall - rain)));
 }