Struct cybergrape::dummy_hdm::DummyHdmBuilder
source · pub struct DummyHdmBuilder {
num_points: usize,
noise: f64,
range: f64,
delay: f64,
}
Expand description
A utility struct that enables configuration of the DummyHdm
Fields§
§num_points: usize
§noise: f64
§range: f64
§delay: f64
Implementations§
source§impl DummyHdmBuilder
impl DummyHdmBuilder
sourcepub fn num_points(self, num_points: usize) -> Self
pub fn num_points(self, num_points: usize) -> Self
Sets the number of sound sources around the listener.
sourcepub fn noise(self, noise: f64) -> Self
pub fn noise(self, noise: f64) -> Self
Sets the “noise” in the simulated measurements of angles
sourcepub fn range(self, range: f64) -> Self
pub fn range(self, range: f64) -> Self
Defines how far the ring of sound sources is from the listener.
Auto Trait Implementations§
impl Freeze for DummyHdmBuilder
impl RefUnwindSafe for DummyHdmBuilder
impl Send for DummyHdmBuilder
impl Sync for DummyHdmBuilder
impl Unpin for DummyHdmBuilder
impl UnwindSafe for DummyHdmBuilder
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more