fn get_max_slope(
    map_size_lg: MapSizeLg,
    h: &[f64],
    rock_strength_nz: &(impl NoiseFn<[f64; 3]> + Sync),
    height_scale: impl Fn(usize) -> f64 + Sync
) -> Box<[f64]>
Expand description

Precompute the maximum slope at all points.

TODO: See if allocating in advance is worthwhile.