Struct autd3_core::geometry::NormalPhaseTransducer
source · pub struct NormalPhaseTransducer { /* private fields */ }
Implementations
Trait Implementations
sourceimpl DatagramBody<NormalPhaseTransducer> for Amplitudes
impl DatagramBody<NormalPhaseTransducer> for Amplitudes
fn init(&mut self) -> Result<()>
fn pack(
&mut self,
_geometry: &Geometry<NormalPhaseTransducer>,
tx: &mut TxDatagram
) -> Result<()>
fn is_finished(&self) -> bool
sourceimpl DatagramBody<NormalPhaseTransducer> for GainSTM<NormalPhaseTransducer>
impl DatagramBody<NormalPhaseTransducer> for GainSTM<NormalPhaseTransducer>
fn init(&mut self) -> Result<()>
fn pack(
&mut self,
_geometry: &Geometry<NormalPhaseTransducer>,
tx: &mut TxDatagram
) -> Result<()>
fn is_finished(&self) -> bool
sourceimpl Sendable<NormalPhaseTransducer> for Amplitudes
impl Sendable<NormalPhaseTransducer> for Amplitudes
sourceimpl Transducer for NormalPhaseTransducer
impl Transducer for NormalPhaseTransducer
fn new(
id: usize,
pos: Vector3,
x_direction: Vector3,
y_direction: Vector3,
z_direction: Vector3
) -> Self
fn align_phase_at(&self, dist: f64, sound_speed: f64) -> f64
fn position(&self) -> &Vector3
fn id(&self) -> usize
fn x_direction(&self) -> &Vector3
fn y_direction(&self) -> &Vector3
fn z_direction(&self) -> &Vector3
fn cycle(&self) -> u16
fn mod_delay(&self) -> u16
fn set_mod_delay(&mut self, delay: u16)
fn frequency(&self) -> f64
fn pack_head(tx: &mut TxDatagram)
fn pack_body(
phase_sent: &mut bool,
duty_sent: &mut bool,
drives: &[Drive],
tx: &mut TxDatagram
) -> Result<()>
fn wavelength(&self, sound_speed: f64) -> f64
fn wavenumber(&self, sound_speed: f64) -> f64
fn gain_stm_max() -> usize
Auto Trait Implementations
impl RefUnwindSafe for NormalPhaseTransducer
impl Send for NormalPhaseTransducer
impl Sync for NormalPhaseTransducer
impl Unpin for NormalPhaseTransducer
impl UnwindSafe for NormalPhaseTransducer
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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 morefn 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.