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

Returns Y axis value for specified X and Z pair

Returns number of values per map side

Implementations

Casts down the reference

Casts down the mutable reference

Implementors