import { MathUtil } from "https://deno.land/x/sptaki@1.2.0/utils/mod.ts";
Map a value from an input range to an output range linearly
Example: a_min = 0; a_max=1; b_min = 1; b_max=3; MathUtil.mapToRange(0.5, a_min, a_max, b_min, b_max) // returns 2