#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

#1535 in Algorithms

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