pub struct WaveHeightfieldConfig { /* private fields */ }Expand description
Declarative configuration for the interactive 2D shallow-water WaveHeightfield2D solver.
Implementations§
Source§impl WaveHeightfieldConfig
Fluent builder helpers for WaveHeightfieldConfig.
impl WaveHeightfieldConfig
Fluent builder helpers for WaveHeightfieldConfig.
Source§impl WaveHeightfieldConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl WaveHeightfieldConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_width(&self) -> usize
pub fn get_mut_width(&mut self) -> &mut usize
pub fn set_width(&mut self, val: usize) -> &mut Self
pub fn get_height(&self) -> usize
pub fn get_mut_height(&mut self) -> &mut usize
pub fn set_height(&mut self, val: usize) -> &mut Self
pub fn get_cell_size_m(&self) -> f32
pub fn get_mut_cell_size_m(&mut self) -> &mut f32
pub fn set_cell_size_m(&mut self, val: f32) -> &mut Self
pub fn get_wave_speed_mps(&self) -> f32
pub fn get_mut_wave_speed_mps(&mut self) -> &mut f32
pub fn set_wave_speed_mps(&mut self, val: f32) -> &mut Self
pub fn get_damping(&self) -> f32
pub fn get_mut_damping(&mut self) -> &mut f32
pub fn set_damping(&mut self, val: f32) -> &mut Self
pub fn get_sponge_width(&self) -> usize
pub fn get_mut_sponge_width(&mut self) -> &mut usize
pub fn set_sponge_width(&mut self, val: usize) -> &mut Self
pub fn get_sponge_strength(&self) -> f32
pub fn get_mut_sponge_strength(&mut self) -> &mut f32
pub fn set_sponge_strength(&mut self, val: f32) -> &mut Self
pub fn get_foam_decay_rate(&self) -> f32
pub fn get_mut_foam_decay_rate(&mut self) -> &mut f32
pub fn set_foam_decay_rate(&mut self, val: f32) -> &mut Self
pub fn get_origin_xz(&self) -> Vec2
pub fn get_mut_origin_xz(&mut self) -> &mut Vec2
pub fn set_origin_xz(&mut self, val: Vec2) -> &mut Self
pub fn get_base_water_y(&self) -> f32
pub fn get_mut_base_water_y(&mut self) -> &mut f32
pub fn set_base_water_y(&mut self, val: f32) -> &mut Self
Trait Implementations§
Source§impl Clone for WaveHeightfieldConfig
impl Clone for WaveHeightfieldConfig
impl Copy for WaveHeightfieldConfig
Source§impl Debug for WaveHeightfieldConfig
impl Debug for WaveHeightfieldConfig
Source§impl Default for WaveHeightfieldConfig
Default shallow-water wave heightfield configuration (64 × 64 grid at 0.25 m cell spacing).
impl Default for WaveHeightfieldConfig
Default shallow-water wave heightfield configuration (64 × 64 grid at 0.25 m cell spacing).
Source§impl PartialEq for WaveHeightfieldConfig
impl PartialEq for WaveHeightfieldConfig
impl StructuralPartialEq for WaveHeightfieldConfig
Auto Trait Implementations§
impl Forget for WaveHeightfieldConfig
impl Freeze for WaveHeightfieldConfig
impl Move for WaveHeightfieldConfig
impl RefUnwindSafe for WaveHeightfieldConfig
impl Send for WaveHeightfieldConfig
impl Sync for WaveHeightfieldConfig
impl Unpin for WaveHeightfieldConfig
impl UnsafeUnpin for WaveHeightfieldConfig
impl UnwindSafe for WaveHeightfieldConfig
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