pub trait Transducer: Send + Sync {
type Gain: GainOp;
type Sync: SyncOp;
type GainSTM: GainSTMOp;
Show 16 methods
// Required methods
fn new(id: usize, pos: Vector3, rot: UnitQuaternion) -> Self;
fn affine(&mut self, pos: Vector3, rot: UnitQuaternion);
fn position(&self) -> &Vector3;
fn rotation(&self) -> &UnitQuaternion;
fn idx(&self) -> usize;
fn frequency(&self) -> f64;
fn mod_delay(&self) -> u16;
fn set_mod_delay(&mut self, value: u16);
fn cycle(&self) -> u16;
// Provided methods
fn get_direction(dir: Vector3, rotation: &UnitQuaternion) -> Vector3 { ... }
fn align_phase_at(&self, pos: Vector3, sound_speed: f64) -> f64 { ... }
fn x_direction(&self) -> Vector3 { ... }
fn y_direction(&self) -> Vector3 { ... }
fn z_direction(&self) -> Vector3 { ... }
fn wavelength(&self, sound_speed: f64) -> f64 { ... }
fn wavenumber(&self, sound_speed: f64) -> f64 { ... }
}