Struct oddio::SpatialControl [−][src]
Control for updating the motion of a spatial signal
Implementations
impl<'a, T> SpatialControl<'a, T>
[src]
pub fn set_motion(&mut self, position: Point3<f32>, velocity: Vector3<f32>)
[src]
Update the position and velocity of the signal
Coordinates should be in world space, translated such that the listener is at the origin, but not rotated, with velocity relative to the listener. Units are meters and meters per second.
Auto Trait Implementations
impl<'a, T> !RefUnwindSafe for SpatialControl<'a, T>
[src]
impl<'a, T> !Send for SpatialControl<'a, T>
[src]
impl<'a, T> !Sync for SpatialControl<'a, T>
[src]
impl<'a, T> Unpin for SpatialControl<'a, T>
[src]
impl<'a, T> !UnwindSafe for SpatialControl<'a, T>
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,