Example #1
0
 /// <summary>
 /// Produces an elevation map projection of this region.
 /// </summary>
 /// <param name="region">The mapped region.</param>
 /// <param name="planet">The planet being mapped.</param>
 /// <param name="resolution">The vertical resolution of the projection.</param>
 /// <param name="equalArea">
 /// If <see langword="true"/> the projection will be a cylindrical equal-area projection.
 /// Otherwise, an equirectangular projection will be used.
 /// </param>
 /// <returns>
 /// A projected map of elevation. Pixel luminosity indicates elevation relative to <see
 /// cref="Planetoid.MaxElevation"/>, with values below the midpoint indicating elevations
 /// below the mean surface.
 /// </returns>
 public static Image <L16> GetElevationMap(
     this SurfaceRegion region,
     Planetoid planet,
     int resolution,
     bool equalArea = false) => planet.GetElevationMap(resolution, region.GetProjection(planet, equalArea));