#range #map #remap

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

#918 in Math

Download history 151/week @ 2024-09-14 174/week @ 2024-09-21 72/week @ 2024-09-28 36/week @ 2024-10-05 115/week @ 2024-10-12 440/week @ 2024-10-19 73/week @ 2024-10-26 68/week @ 2024-11-02 28/week @ 2024-11-09 31/week @ 2024-11-16 71/week @ 2024-11-23 109/week @ 2024-11-30 280/week @ 2024-12-07 116/week @ 2024-12-14 16/week @ 2024-12-21 47/week @ 2024-12-28

506 downloads per month
Used in 3 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