linearly v0.32.0Docs


linearly v0.32.0 / vec3 / efit

Function: efit()

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

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: vec3

omin: vec3

omax: vec3

nmin: vec3

nmax: vec3

Returns

vec3

See

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

Defined in

src/vec3.ts:509open in new window