Struct autd3_core::geometry::Geometry
source · pub struct Geometry<T: Transducer> { /* private fields */ }Implementations§
source§impl<T: Transducer> Geometry<T>
impl<T: Transducer> Geometry<T>
pub fn add_device<D: Device<T>>(&mut self, dev: D) -> Result<()>
pub fn num_devices(&self) -> usize
pub fn num_transducers(&self) -> usize
pub fn transducers(&self) -> Iter<'_, T>
pub fn transducers_mut(&mut self) -> IterMut<'_, T>
pub fn center(&self) -> Vector3
pub fn device_map(&self) -> &[usize]
Trait Implementations§
source§impl<'a, T> IntoIterator for &'a Geometry<T>where
T: Transducer,
impl<'a, T> IntoIterator for &'a Geometry<T>where
T: Transducer,
source§impl<'a, T> IntoIterator for &'a mut Geometry<T>where
T: Transducer,
impl<'a, T> IntoIterator for &'a mut Geometry<T>where
T: Transducer,
Auto Trait Implementations§
impl<T> RefUnwindSafe for Geometry<T>where
T: RefUnwindSafe,
impl<T> Send for Geometry<T>where
T: Send,
impl<T> Sync for Geometry<T>where
T: Sync,
impl<T> Unpin for Geometry<T>where
T: Unpin,
impl<T> UnwindSafe for Geometry<T>where
T: UnwindSafe,
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.