linearly v0.32.0 • Docs
linearly v0.32.0 / vec4 / fit
Function: fit()
fit(
value
,omin
,omax
,nmin
,nmax
):vec4
Takes the value in the range (omin, omax)
and shifts it to the corresponding value in the new range (nmin, nmax)
. The function clamps the given value the range (omin, omax)
before fitting, so the resulting value will be guaranteed to be in the range (nmin, nmax)
. To avoid clamping use efit instead.
Parameters
• value: vec4
• omin: vec4
• omax: vec4
• nmin: vec4
• nmax: vec4
Returns
See
https://www.sidefx.com/docs/houdini/vex/functions/fit.html