Struct oddio::SpatialOptions
source · pub struct SpatialOptions {
pub position: Point3<f32>,
pub velocity: Vector3<f32>,
pub radius: f32,
}
Expand description
Passed to SpatialSceneControl::play
Fields§
§position: Point3<f32>
Initial position
velocity: Vector3<f32>
Initial velocity
radius: f32
Distance of zero attenuation. Approaching closer does not increase volume.
Trait Implementations§
source§impl Clone for SpatialOptions
impl Clone for SpatialOptions
source§fn clone(&self) -> SpatialOptions
fn clone(&self) -> SpatialOptions
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SpatialOptions
impl Debug for SpatialOptions
source§impl Default for SpatialOptions
impl Default for SpatialOptions
impl Copy for SpatialOptions
Auto Trait Implementations§
impl RefUnwindSafe for SpatialOptions
impl Send for SpatialOptions
impl Sync for SpatialOptions
impl Unpin for SpatialOptions
impl UnwindSafe for SpatialOptions
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more