Trait dotrix_terrain::Heightmap [−][src]
pub trait Heightmap: Any + Sync + Send {
fn value(&self, x: usize, z: usize) -> f32;
fn size(&self) -> usize;
}
Expand description
Trait for the terrain heights source
Required methods
Implementations
Casts down the reference
Casts down the mutable reference