pub struct SimulationParams {
pub size: usize,
pub max_long_age: usize,
pub max_short_age: usize,
pub max_generations: usize,
pub children: usize,
pub max_long_angle_divergence: f64,
pub max_short_angle_divergence: f64,
pub short_branch_frequency: usize,
pub paint: Paint,
pub initial_walkers: InitialWalkers,
pub seed: u64,
}Expand description
The parameters that control the simulation.
Fields§
§size: usizeSize of the grid.
max_long_age: usizeMaximum age that long walkers survive to.
max_short_age: usizeMaximum age that short walkers survive to.
max_generations: usizeMaximum generations of walkers.
children: usizeHow many children a walker spawns when it ends.
max_long_angle_divergence: f64Maximum angle that a long walker can diverge from its parent. Angles are in units of Pi radians, and clamped to 0.00..=2.00.
max_short_angle_divergence: f64Maximum angle that a short walker can diverge from its parent. Angles are in units of Pi radians, and clamped to 0.00..=2.00.
short_branch_frequency: usizeHow often a long walker produces a short branch.
paint: PaintWhat to fill the grid with.
initial_walkers: InitialWalkersHow to place initial walkers.
seed: u64Seed for the randomness.
Auto Trait Implementations§
impl Freeze for SimulationParams
impl RefUnwindSafe for SimulationParams
impl Send for SimulationParams
impl Sync for SimulationParams
impl Unpin for SimulationParams
impl UnwindSafe for SimulationParams
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