Struct autd3_core::geometry::NormalTransducer
source · pub struct NormalTransducer { /* private fields */ }Implementations§
Trait Implementations§
source§impl Sendable<NormalTransducer> for GainSTM<NormalTransducer>
impl Sendable<NormalTransducer> for GainSTM<NormalTransducer>
source§impl Transducer for NormalTransducer
impl Transducer for NormalTransducer
fn new(id: usize, pos: Vector3, rot: UnitQuaternion) -> Self
fn position(&self) -> &Vector3
fn rotation(&self) -> &UnitQuaternion
fn id(&self) -> usize
fn cycle(&self) -> u16
fn frequency(&self) -> f64
fn mod_delay(&self) -> u16
fn set_mod_delay(&mut self, delay: u16)
fn sound_speed(&self) -> f64
fn set_sound_speed(&mut self, value: f64)
fn attenuation(&self) -> f64
fn set_attenuation(&mut self, value: f64)
fn get_direction(dir: Vector3, rotation: &UnitQuaternion) -> Vector3
fn align_phase_at(&self, dist: f64) -> f64
fn x_direction(&self) -> Vector3
fn y_direction(&self) -> Vector3
fn z_direction(&self) -> Vector3
fn wavelength(&self) -> f64
fn wavenumber(&self) -> f64
Auto Trait Implementations§
impl RefUnwindSafe for NormalTransducer
impl Send for NormalTransducer
impl Sync for NormalTransducer
impl Unpin for NormalTransducer
impl UnwindSafe for NormalTransducer
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.