map

xod/math/map

Projects a number from one range to another preserving ratio
map
@/map
Projects a number from one range to another preserving ratio
Xnumber
Value to map
Sminnumber
Source range lower bound
Smaxnumber
Source range upper bound
Tminnumber
Target range lower bound
Tmaxnumber
Tartger range upper bound
map
XXSminSminSmaxSmaxTminTminTmaxTmaxOUTOUT
OUTnumber
Mapped value

Previously known as xod/core/map-range.