pub trait Transducer: Send + Sync {
Show 21 methods // Required methods fn new(local_idx: usize, pos: Vector3, rot: UnitQuaternion) -> Self; fn translate_to(&mut self, pos: Vector3); fn rotate_to(&mut self, rot: UnitQuaternion); fn affine(&mut self, pos: Vector3, rot: UnitQuaternion); fn position(&self) -> &Vector3; fn rotation(&self) -> &UnitQuaternion; fn local_idx(&self) -> usize; fn frequency(&self) -> f64; fn mod_delay(&self) -> u16; fn set_mod_delay(&mut self, value: u16); fn amp_filter(&self) -> f64; fn set_amp_filter(&mut self, value: f64); fn phase_filter(&self) -> f64; fn set_phase_filter(&mut self, value: f64); fn cycle(&self) -> u16; // Provided methods 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 { ... }
}

Required Methods§

source

fn new(local_idx: usize, pos: Vector3, rot: UnitQuaternion) -> Self

Create transducer

source

fn translate_to(&mut self, pos: Vector3)

source

fn rotate_to(&mut self, rot: UnitQuaternion)

source

fn affine(&mut self, pos: Vector3, rot: UnitQuaternion)

Affine transformation

source

fn position(&self) -> &Vector3

Get the position of the transducer

source

fn rotation(&self) -> &UnitQuaternion

Get the rotation of the transducer

source

fn local_idx(&self) -> usize

Get the local index of the transducer

source

fn frequency(&self) -> f64

Get the frequency of the transducer

source

fn mod_delay(&self) -> u16

Get the modulation delay of the transducer

source

fn set_mod_delay(&mut self, value: u16)

Set the modulation delay of the transducer

source

fn amp_filter(&self) -> f64

Get the amp filter

source

fn set_amp_filter(&mut self, value: f64)

Set the amp filter

source

fn phase_filter(&self) -> f64

Get the phase filter

source

fn set_phase_filter(&mut self, value: f64)

Set the phase filter

source

fn cycle(&self) -> u16

Get the cycle of the transducer

Provided Methods§

source

fn align_phase_at(&self, pos: Vector3, sound_speed: f64) -> f64

Calculate the phase of the transducer to align the phase at the specified position

source

fn x_direction(&self) -> Vector3

Get the x-direction of the transducer

source

fn y_direction(&self) -> Vector3

Get the y-direction of the transducer

source

fn z_direction(&self) -> Vector3

Get the z-direction (axial direction) of the transducer

source

fn wavelength(&self, sound_speed: f64) -> f64

Get the wavelength of the transducer

source

fn wavenumber(&self, sound_speed: f64) -> f64

Get the wavenumber of the transducer

Object Safety§

This trait is not object safe.

Implementors§