#range #map #numbers #another #traits #environments #map-range

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

#1682 in Algorithms

32 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