pub struct ErosionParams {Show 13 fields
pub hydraulic_ratio: f32,
pub max_drop_lifetime: usize,
pub capacity_mult: f32,
pub erosion_rate: f32,
pub deposition_rate: f32,
pub gravity: f32,
pub evaporation: f32,
pub min_slope: f32,
pub talus_angle: f32,
pub thermal_rate: f32,
pub inertia: f32,
pub initial_water: f32,
pub initial_speed: f32,
}Expand description
Erosion parameters.
Fields§
§hydraulic_ratio: f32Fraction of steps that are hydraulic (vs thermal).
max_drop_lifetime: usizeMaximum steps per raindrop before it stops.
capacity_mult: f32Sediment capacity multiplier.
erosion_rate: f32Erosion rate (how fast material is picked up).
deposition_rate: f32Deposition rate (how fast sediment is dropped).
gravity: f32Gravity strength.
evaporation: f32Evaporation rate per step.
min_slope: f32Minimum slope for erosion to occur.
talus_angle: f32Talus angle for thermal erosion (radians).
thermal_rate: f32Thermal erosion rate.
inertia: f32Inertia (how much the drop retains its previous direction).
initial_water: f32Initial water volume per drop.
initial_speed: f32Initial velocity per drop.
Trait Implementations§
Source§impl Clone for ErosionParams
impl Clone for ErosionParams
Source§impl Debug for ErosionParams
impl Debug for ErosionParams
Auto Trait Implementations§
impl Freeze for ErosionParams
impl RefUnwindSafe for ErosionParams
impl Send for ErosionParams
impl Sync for ErosionParams
impl Unpin for ErosionParams
impl UnsafeUnpin for ErosionParams
impl UnwindSafe for ErosionParams
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.