pub trait HeightFieldStorage {
    type Item;

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

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

Required Associated Types

The type of heights.

Required Methods

The number of heights on this storage.

Gets the i-th height of the heightfield.

Sets the i-th height of the heightfield.

Implementors