Skip to main content

map_value

Function map_value 

Source
pub fn map_value(value: f32, min: f32, max: f32) -> f32
Expand description

Map a normalized modulator value in [0, 1] to a target range. When min <= max the output increases with the modulator value. When min > max the output is reversed (decreases as the modulator value increases).