linearly v0.32.0Docs


linearly v0.32.0 / scalar / efit

Function: efit()

efit(value, omin, omax, nmin, nmax): number

Takes the value in the range (omin, omax) and shifts it to the corresponding value in the new range (nmin, nmax). Unlike fit, this function does not clamp values to the given range. If omin and omax are the same, the function returns the average of nmin and nmax.

Parameters

value: number

omin: number

omax: number

nmin: number

nmax: number

Returns

number

See

https://www.sidefx.com/docs/houdini/vex/functions/fit.htmlopen in new window

Defined in

src/scalar.ts:296open in new window