Projects a number from one range to another preserving ratio. Then clips a result to the target range.
map-clip-copy
@/map-clip-copy
Projects a number from one range to another preserving ratio. Then clips a result to the target range.
Xnumber
The value to map and clip.
Sminnumber
Source range lower bound
Smaxnumber
Source range upper bound
Tminnumber
Target range lower bound
Tmaxnumber
Target range upper bound
OUTnumber
The resulting mapped and clipped value of `X`.
Previously known as xod/core/map-clip-range.
To use the node in your project you should have the hio/nwt-gus-hi library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.