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>

source

pub fn num_devices(&self) -> usize

source

pub fn num_transducers(&self) -> usize

source

pub fn transducers(&self) -> Iter<'_, T>

source

pub fn transducers_of(&self, idx: usize) -> Take<Skip<Iter<'_, T>>>

source

pub fn transducers_mut(&mut self) -> IterMut<'_, T>

source

pub fn transducers_mut_of(&mut self, idx: usize) -> Take<Skip<IterMut<'_, T>>>

source

pub fn center(&self) -> Vector3

source

pub fn center_of(&self, idx: usize) -> Vector3

source

pub fn translate(&mut self, t: Vector3)

source

pub fn rotate(&mut self, r: UnitQuaternion)

source

pub fn affine(&mut self, t: Vector3, r: UnitQuaternion)

source

pub fn translate_of(&mut self, idx: usize, t: Vector3)

source

pub fn rotate_of(&mut self, idx: usize, r: UnitQuaternion)

source

pub fn affine_of(&mut self, idx: usize, t: Vector3, r: UnitQuaternion)

source

pub fn device_map(&self) -> &[usize]

source

pub fn set_sound_speed_from_temp(&mut self, temp: f64)

source

pub fn set_sound_speed_from_temp_with( &mut self, temp: f64, k: f64, r: f64, m: f64 )

source§

impl Geometry<LegacyTransducer>

Trait Implementations§

source§

impl<T: Default + Transducer> Default for Geometry<T>

source§

fn default() -> Geometry<T>

Returns the “default value” for a type. Read more
source§

impl<T: Transducer> Index<usize> for Geometry<T>

§

type Output = T

The returned type after indexing.
source§

fn index(&self, idx: usize) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl<T: Transducer> IndexMut<usize> for Geometry<T>

source§

fn index_mut(&mut self, idx: usize) -> &mut T

Performs the mutable indexing (container[index]) operation. Read more
source§

impl<'a, T: Transducer> IntoIterator for &'a Geometry<T>

§

type Item = &'a T

The type of the elements being iterated over.
§

type IntoIter = Iter<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> Iter<'a, T>

Creates an iterator from a value. Read more
source§

impl<'a, T: Transducer> IntoIterator for &'a mut Geometry<T>

§

type Item = &'a mut T

The type of the elements being iterated over.
§

type IntoIter = IterMut<'a, T>

Which kind of iterator are we turning this into?
source§

fn into_iter(self) -> IterMut<'a, T>

Creates an iterator from a value. Read more

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> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,

§

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

Checks if self is actually part of its subset T (and can be converted to it).
§

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

The inclusion map: converts self to the equivalent element of its superset.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.