Struct GerstnerWave
#[repr(C)]pub struct GerstnerWave {
pub direction: [f32; 2],
pub amplitude: f32,
pub wavelength: f32,
pub steepness: f32,
pub phase: f32,
}Expand description
Individual Gerstner wave harmonic component.
Fields§
§direction: [f32; 2]Normalized horizontal propagation direction [dx, dz].
amplitude: f32Wave amplitude in meters (crest height above calm surface).
wavelength: f32Wavelength in meters.
steepness: f32Wave steepness $Q \in [0.0, 1.0]$ where $Q=0$ is sinusoidal and $Q=1$ is sharp trochoidal.
phase: f32Phase offset in radians.
Trait Implementations§
§impl Clone for GerstnerWave
impl Clone for GerstnerWave
§fn clone(&self) -> GerstnerWave
fn clone(&self) -> GerstnerWave
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GerstnerWave
§impl Debug for GerstnerWave
impl Debug for GerstnerWave
§impl Default for GerstnerWave
impl Default for GerstnerWave
§fn default() -> GerstnerWave
fn default() -> GerstnerWave
Returns the “default value” for a type. Read more
§impl PartialEq for GerstnerWave
impl PartialEq for GerstnerWave
impl StructuralPartialEq for GerstnerWave
Auto Trait Implementations§
impl Freeze for GerstnerWave
impl RefUnwindSafe for GerstnerWave
impl Send for GerstnerWave
impl Sync for GerstnerWave
impl Unpin for GerstnerWave
impl UnsafeUnpin for GerstnerWave
impl UnwindSafe for GerstnerWave
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