Function veloren_world::sim::util::downhill

source ·
pub fn downhill<F: Float>(
    map_size_lg: MapSizeLg,
    h: impl Fn(usize) -> F + Sync,
    is_ocean: impl Fn(usize) -> bool + Sync
) -> Box<[isize]>
Expand description

Compute the neighbor “most downhill” from all chunks.

TODO: See if allocating in advance is worthwhile.