Struct autd3_core::geometry::Geometry
source · pub struct Geometry<T: Transducer> {
pub sound_speed: f64,
pub attenuation: f64,
/* private fields */
}
Fields§
§sound_speed: f64
§attenuation: f64
Implementations§
source§impl<T: Transducer> Geometry<T>
impl<T: Transducer> Geometry<T>
pub fn num_devices(&self) -> usize
pub fn num_transducers(&self) -> usize
pub fn transducers(&self) -> Iter<'_, T>
pub fn transducers_of(&self, idx: usize) -> Take<Skip<Iter<'_, T>>>
pub fn transducers_mut(&mut self) -> IterMut<'_, T>
pub fn transducers_mut_of(&mut self, idx: usize) -> Take<Skip<IterMut<'_, T>>>
pub fn center(&self) -> Vector3
pub fn center_of(&self, idx: usize) -> Vector3
pub fn translate(&mut self, t: Vector3)
pub fn rotate(&mut self, r: UnitQuaternion)
pub fn affine(&mut self, t: Vector3, r: UnitQuaternion)
pub fn translate_of(&mut self, idx: usize, t: Vector3)
pub fn rotate_of(&mut self, idx: usize, r: UnitQuaternion)
pub fn affine_of(&mut self, idx: usize, t: Vector3, r: UnitQuaternion)
pub fn device_map(&self) -> &[usize]
pub fn set_sound_speed_from_temp(&mut self, temp: f64)
pub fn set_sound_speed_from_temp_with( &mut self, temp: f64, k: f64, r: f64, m: f64 )
source§impl Geometry<LegacyTransducer>
impl Geometry<LegacyTransducer>
pub fn builder() -> GeometryBuilder<LegacyTransducer>
Trait Implementations§
source§impl<'a, T: Transducer> IntoIterator for &'a Geometry<T>
impl<'a, T: Transducer> IntoIterator for &'a Geometry<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Geometry<T>where T: RefUnwindSafe,
impl<T> Send for Geometry<T>
impl<T> Sync for Geometry<T>
impl<T> Unpin for Geometry<T>where T: Unpin,
impl<T> UnwindSafe for Geometry<T>where T: UnwindSafe,
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.