use rill_core::Transcendental;
#[derive(Debug, Clone)]
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,
}
impl<T: Transcendental> Default for PlateParams<T> {
fn default() -> Self {
Self {
grid_width: 16,
grid_height: 16,
wave_speed: T::from_f64(0.25),
decay: T::from_f64(0.999),
boundary: T::from_f64(0.5),
excitation_x: T::from_f64(0.5),
excitation_y: T::from_f64(0.5),
}
}
}