Struct oddio::SpatialControl[][src]

pub struct SpatialControl<'a, T>(_);

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.