#range #numbers #map #another #interpolation #traits #environments

map_to_range

A library to map numbers from on range to another

2 unstable releases

0.2.0 May 26, 2024
0.1.1 May 26, 2024
0.1.0 May 23, 2024

#1586 in Algorithms

Download history 1/week @ 2024-07-14 38/week @ 2024-07-21 87/week @ 2024-07-28 5/week @ 2024-08-04 1/week @ 2024-09-15 12/week @ 2024-09-22 1/week @ 2024-09-29 35/week @ 2024-10-06 231/week @ 2024-10-13 61/week @ 2024-10-20

327 downloads per month

MIT license

18KB
340 lines

map_to_range

map_to_range hosts a trait MapRange, that adds a function to numbers to map them from one range to another. To use this, just bring the trait into scope with use map_to_range::MapRange;.

This is designed to work in no_std environments

No runtime deps