pub struct WaveParameters {
pub wavelength: f32,
pub amplitude: f32,
pub speed: f32,
pub steepness: f32,
pub direction: Vec2,
}Expand description
A set of parameters that defines one wave of the water surface.
Fields§
§wavelength: f32The distance between each top of the wave.
amplitude: f32The distance from the top or bottom of the wave to the average water height.
speed: f32The speed at which the waves move.
steepness: f32The steepness of the wave, which specifies how pointy the wave top will be.
direction: Vec2The direction of the wave.
Trait Implementations§
Source§impl Clone for WaveParameters
impl Clone for WaveParameters
Source§fn clone(&self) -> WaveParameters
fn clone(&self) -> WaveParameters
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WaveParameters
impl Debug for WaveParameters
Source§impl Default for WaveParameters
impl Default for WaveParameters
impl Copy for WaveParameters
Auto Trait Implementations§
impl Freeze for WaveParameters
impl RefUnwindSafe for WaveParameters
impl Send for WaveParameters
impl Sync for WaveParameters
impl Unpin for WaveParameters
impl UnwindSafe for WaveParameters
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