For each location on the map, a hill is added to the digital elevation model. The elevation of a hill at position (x0,y0) with height (z) is defined as follows, f(x,y) = z * exp ^ (-0.5 * (dist * factor) ^ 2) where dist = sqrt((x - x0) ^ 2 + (y - y0) ^ 2) and factor = k / z. The constant (k) is chosen such that a hill of height 100.0 has a diameter of 41% of the map.
The algorithm has been optimized to run fast.
Not thread-safe. @author Adrian Kuhn
|
|
|
|