Enum baal::effect::DistanceModel [] [src]

pub enum DistanceModel {
    Linear(f32f32),
    Pow2(f32f32),
}

distance model, used to compute sound effects volumes.

Variants

if d <= a then 1

if a <= d <= b then 1-((d-a)/(b-a))

if d >= b then 0

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for DistanceModel
[src]

Formats the value using the given formatter.

impl PartialEq for DistanceModel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.