Enum baal::effect::DistanceModel
[−]
[src]
pub enum DistanceModel { Linear(f32, f32), Pow2(f32, f32), }
distance model, used to compute sound effects volumes.
Variants
Linear(f32, f32)
if d <= a then 1
if a <= d <= b then 1-((d-a)/(b-a))
if d >= b then 0
Pow2(f32, f32)
if d <= a then 1
if a <= d <= b then (1-((d-a)/(b-a)))2
if d >= b then 0
Trait Implementations
impl Clone for DistanceModel
[src]
fn clone(&self) -> DistanceModel
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for DistanceModel
[src]
impl PartialEq for DistanceModel
[src]
fn eq(&self, __arg_0: &DistanceModel) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &DistanceModel) -> bool
This method tests for !=
.