Merge branch 'tags' of ssh://git.chaboissier.fr:222/octagonal/oxydsp into tags

This commit is contained in:
2026-04-09 16:35:01 +02:00
14 changed files with 622 additions and 92 deletions

View File

@ -7,7 +7,7 @@ pub mod units;
/// Maps a float from a range onto another
/// linearly
fn map<T: Float>(x: T, x_min: T, x_max: T, o_min: T, o_max: T) -> T
pub fn map<T: Float>(x: T, x_min: T, x_max: T, o_min: T, o_max: T) -> T
{
((x - x_min) / (x_max - x_min)) * (o_max - o_min) + o_min
}