Struct autd3_core::geometry::LegacyTransducer
source · pub struct LegacyTransducer { /* private fields */ }
Trait Implementations§
source§impl Transducer for LegacyTransducer
impl Transducer for LegacyTransducer
type Gain = GainLegacy
type Sync = SyncLegacy
type GainSTM = GainSTMLegacy
fn new(idx: usize, pos: Vector3, rot: UnitQuaternion) -> Self
fn affine(&mut self, t: Vector3, r: 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, delay: u16)
fn get_direction(dir: Vector3, rotation: &UnitQuaternion) -> Vector3
fn x_direction(&self) -> Vector3
fn y_direction(&self) -> Vector3
fn z_direction(&self) -> Vector3
fn cycle(&self) -> u16
fn align_phase_at(&self, pos: Vector3, sound_speed: f64) -> f64
fn wavelength(&self, sound_speed: f64) -> f64
fn wavenumber(&self, sound_speed: f64) -> f64
Auto Trait Implementations§
impl RefUnwindSafe for LegacyTransducer
impl Send for LegacyTransducer
impl Sync for LegacyTransducer
impl Unpin for LegacyTransducer
impl UnwindSafe for LegacyTransducer
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
§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.