pub fn map(
value: f64,
from_min: f64,
from_max: f64,
to_min: f64,
to_max: f64,
) -> f64Expand description
Map a value from one range to another (unclamped).
Unlike map_clamped, the result can extrapolate outside [to_min, to_max].
Java reference: Mth.map(double, double, double, double, double)