Ejemplo n.º 1
0
    /// <summary>
    /// Gets precipitation on current position
    /// Use <see cref="PrecipitationGenerator"/> for more detailed access
    /// </summary>
    public double GetPrecipitation(int posX, int posY)
    {
        double elevation   = ElevationGenerator.GetElevation(posX, posY);
        double temperature = TemperatureGenerator.GetTemperature(posX, elevation);

        return(PrecipitationGenerator.GetPrecipitation(posX, posY, elevation, temperature));
    }
Ejemplo n.º 2
0
    /// <summary>
    /// Gets temperature on current position
    /// Use <see cref="TemperatureGenerator"/> for more detailed access
    /// </summary>
    public double GetTemperature(int posX, int posY)
    {
        double elevation = ElevationGenerator.GetElevation(posX, posY);

        return(TemperatureGenerator.GetTemperature(posY, elevation));
    }