Struct autd3_core::geometry::Device  
source · [−]pub struct Device<T: Transducer> { /* private fields */ }Implementations
sourceimpl<T: Transducer> Device<T>
 
impl<T: Transducer> Device<T>
pub fn local_position(&self, global_position: &Vector3) -> Vector3
pub fn transducers(&self) -> &[T]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn transducers_mut(&mut self) -> &mut [T]ⓘNotable traits for &[u8]impl Read for &[u8]impl Write for &mut [u8]
pub fn center(&self) -> Vector3
sourceimpl<T: Transducer> Device<T>
 
impl<T: Transducer> Device<T>
pub fn new(id: usize, position: Vector3, rotation: UnitQuaternion) -> Self
Auto Trait Implementations
impl<T> RefUnwindSafe for Device<T> where
    T: RefUnwindSafe, 
impl<T> Send for Device<T> where
    T: Send, 
impl<T> Sync for Device<T> where
    T: Sync, 
impl<T> Unpin for Device<T> where
    T: Unpin, 
impl<T> UnwindSafe for Device<T> where
    T: UnwindSafe, 
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    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 SP where
    SS: SubsetOf<SP>, 
impl<SS, SP> SupersetOf<SS> for SP where
    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.