pub struct OceanConfig { /* private fields */ }Expand description
Complete declarative configuration for OceanSurface3D.
Implementations§
Source§impl OceanConfig
Preset constructors and sanitization helpers for OceanConfig.
impl OceanConfig
Preset constructors and sanitization helpers for OceanConfig.
Sourcepub fn from_preset(preset: OceanPreset) -> Self
pub fn from_preset(preset: OceanPreset) -> Self
Source§impl OceanConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
impl OceanConfig
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_preset(&self) -> OceanPreset
pub fn get_mut_preset(&mut self) -> &mut OceanPreset
pub fn set_preset(&mut self, val: OceanPreset) -> &mut Self
pub fn get_wind_speed_mps(&self) -> f32
pub fn get_mut_wind_speed_mps(&mut self) -> &mut f32
pub fn set_wind_speed_mps(&mut self, val: f32) -> &mut Self
pub fn get_wind_direction(&self) -> Vec2
pub fn get_mut_wind_direction(&mut self) -> &mut Vec2
pub fn set_wind_direction(&mut self, val: Vec2) -> &mut Self
pub fn get_fetch_km(&self) -> f32
pub fn get_mut_fetch_km(&mut self) -> &mut f32
pub fn set_fetch_km(&mut self, val: f32) -> &mut Self
pub fn get_choppiness(&self) -> f32
pub fn get_mut_choppiness(&mut self) -> &mut f32
pub fn set_choppiness(&mut self, val: f32) -> &mut Self
pub fn get_mean_water_level_y(&self) -> f32
pub fn get_mut_mean_water_level_y(&mut self) -> &mut f32
pub fn set_mean_water_level_y(&mut self, val: f32) -> &mut Self
pub fn get_gravity_mps2(&self) -> f32
pub fn get_mut_gravity_mps2(&mut self) -> &mut f32
pub fn set_gravity_mps2(&mut self, val: f32) -> &mut Self
pub fn get_cascade_count(&self) -> u8
pub fn get_mut_cascade_count(&mut self) -> &mut u8
pub fn set_cascade_count(&mut self, val: u8) -> &mut Self
pub fn get_seed(&self) -> u64
pub fn get_mut_seed(&mut self) -> &mut u64
pub fn set_seed(&mut self, val: u64) -> &mut Self
pub fn get_optics(&self) -> OceanOpticalConfig
pub fn get_mut_optics(&mut self) -> &mut OceanOpticalConfig
pub fn set_optics(&mut self, val: OceanOpticalConfig) -> &mut Self
Trait Implementations§
Source§impl Clone for OceanConfig
impl Clone for OceanConfig
impl Copy for OceanConfig
Source§impl Debug for OceanConfig
impl Debug for OceanConfig
Source§impl Default for OceanConfig
Default CoastalSwell ocean sea-state configuration.
impl Default for OceanConfig
Default CoastalSwell ocean sea-state configuration.
Source§impl PartialEq for OceanConfig
impl PartialEq for OceanConfig
impl StructuralPartialEq for OceanConfig
Auto Trait Implementations§
impl Forget for OceanConfig
impl Freeze for OceanConfig
impl Move for OceanConfig
impl RefUnwindSafe for OceanConfig
impl Send for OceanConfig
impl Sync for OceanConfig
impl Unpin for OceanConfig
impl UnsafeUnpin for OceanConfig
impl UnwindSafe for OceanConfig
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