@lucid-softworks/number-remap
v0.1.0
Published
Linearly map values from one numeric range to another.
Maintainers
Readme
@lucid-softworks/number-remap
Map a value linearly between two ranges by composing number-inverse-lerp and
number-lerp. Extrapolation is supported.
import { remap } from "@lucid-softworks/number-remap";
remap(5, 0, 10, 0, 100); // 50