#range

no-std map-range

map a value from a range to another range

2 releases

0.1.2 Aug 31, 2023
0.1.1 Oct 9, 2022
0.1.0 Oct 9, 2022

#868 in Math

Download history 133/week @ 2024-07-21 88/week @ 2024-07-28 31/week @ 2024-08-04 45/week @ 2024-08-11 55/week @ 2024-08-18 82/week @ 2024-08-25 130/week @ 2024-09-01 257/week @ 2024-09-08 147/week @ 2024-09-15 170/week @ 2024-09-22 73/week @ 2024-09-29 37/week @ 2024-10-06 116/week @ 2024-10-13 439/week @ 2024-10-20 85/week @ 2024-10-27 65/week @ 2024-11-03

707 downloads per month
Used in 2 crates

MIT license

6KB

map-range

A super simple crate to map values from a range to another range.

dependency status build status crates.io docs.rs

Example

use map_range::MapRange;
let _ = 5_i32.map_range(0..10, -10..10);

Dependencies

~150KB