pub trait HeightFieldStorage {
    type Item;

    fn nrows(&self) -> usize;
    fn ncols(&self) -> usize;
    fn get(&self, i: usize, j: usize) -> Self::Item;
    fn set(&mut self, i: usize, j: usize, val: Self::Item);
}
Expand description

Abstraction over the storage type of an heightfield’s heights grid.

Required Associated Types

The type of heights.

Required Methods

The number of rows of the heights grid.

The number of columns of the heights grid.

Gets the height on the (i, j)-th cell of the height grid.

Sets the height on the (i, j)-th cell of the height grid.

Implementations on Foreign Types

Implementors