pub struct PlateParams<T: Transcendental> {
pub grid_width: usize,
pub grid_height: usize,
pub wave_speed: T,
pub decay: T,
pub boundary: T,
pub excitation_x: T,
pub excitation_y: T,
}Expand description
Parameters for a 2D plate/membrane model.
Fields§
§grid_width: usizeGrid width (4–64, power of two recommended).
grid_height: usizeGrid height (4–64, power of two recommended).
wave_speed: TWave speed coefficient (0.0–0.5, stability requires ≤ 0.25 for 2D).
decay: TDecay per sample (0.0–1.0, 0.999 typical).
boundary: TBoundary condition: 0.0 = clamped, 1.0 = free edge.
excitation_x: TExcitation position as fraction of width (0.0–1.0).
excitation_y: TExcitation position as fraction of height (0.0–1.0).
Trait Implementations§
Source§impl<T: Clone + Transcendental> Clone for PlateParams<T>
impl<T: Clone + Transcendental> Clone for PlateParams<T>
Source§fn clone(&self) -> PlateParams<T>
fn clone(&self) -> PlateParams<T>
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 moreSource§impl<T: Debug + Transcendental> Debug for PlateParams<T>
impl<T: Debug + Transcendental> Debug for PlateParams<T>
Source§impl<T: Transcendental> Default for PlateParams<T>
impl<T: Transcendental> Default for PlateParams<T>
Auto Trait Implementations§
impl<T> Freeze for PlateParams<T>where
T: Freeze,
impl<T> RefUnwindSafe for PlateParams<T>where
T: RefUnwindSafe,
impl<T> Send for PlateParams<T>
impl<T> Sync for PlateParams<T>
impl<T> Unpin for PlateParams<T>where
T: Unpin,
impl<T> UnsafeUnpin for PlateParams<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for PlateParams<T>where
T: UnwindSafe,
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