pub struct GerstnerWaveComponent { /* private fields */ }Expand description
Single directional Gerstner wave train synthesized from a JONSWAP sea-state cascade.
Implementations§
Source§impl GerstnerWaveComponent
Implements impl #impl_generics #name #ty_generics #where_clause.
impl GerstnerWaveComponent
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_direction(&self) -> Vec2
pub fn get_mut_direction(&mut self) -> &mut Vec2
pub fn set_direction(&mut self, val: Vec2) -> &mut Self
pub fn get_wavelength_m(&self) -> f32
pub fn get_mut_wavelength_m(&mut self) -> &mut f32
pub fn set_wavelength_m(&mut self, val: f32) -> &mut Self
pub fn get_amplitude_m(&self) -> f32
pub fn get_mut_amplitude_m(&mut self) -> &mut f32
pub fn set_amplitude_m(&mut self, val: f32) -> &mut Self
pub fn get_steepness(&self) -> f32
pub fn get_mut_steepness(&mut self) -> &mut f32
pub fn set_steepness(&mut self, val: f32) -> &mut Self
pub fn get_phase_offset(&self) -> f32
pub fn get_mut_phase_offset(&mut self) -> &mut f32
pub fn set_phase_offset(&mut self, val: f32) -> &mut Self
pub fn get_speed_multiplier(&self) -> f32
pub fn get_mut_speed_multiplier(&mut self) -> &mut f32
pub fn set_speed_multiplier(&mut self, val: f32) -> &mut Self
pub fn get_cascade_index(&self) -> u8
pub fn get_mut_cascade_index(&mut self) -> &mut u8
pub fn set_cascade_index(&mut self, val: u8) -> &mut Self
Trait Implementations§
Source§impl Clone for GerstnerWaveComponent
impl Clone for GerstnerWaveComponent
impl Copy for GerstnerWaveComponent
Source§impl Debug for GerstnerWaveComponent
impl Debug for GerstnerWaveComponent
Source§impl Default for GerstnerWaveComponent
impl Default for GerstnerWaveComponent
Source§impl PartialEq for GerstnerWaveComponent
impl PartialEq for GerstnerWaveComponent
impl StructuralPartialEq for GerstnerWaveComponent
Auto Trait Implementations§
impl Forget for GerstnerWaveComponent
impl Freeze for GerstnerWaveComponent
impl Move for GerstnerWaveComponent
impl RefUnwindSafe for GerstnerWaveComponent
impl Send for GerstnerWaveComponent
impl Sync for GerstnerWaveComponent
impl Unpin for GerstnerWaveComponent
impl UnsafeUnpin for GerstnerWaveComponent
impl UnwindSafe for GerstnerWaveComponent
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