page7
Houdini VEX
III. Math Operation
abs(number)
Returns the absolute value of the argument.
lerp(value1,value2,float)
Performs bilinear interpolation between the values.
Fit Range
fit01(num, min, max)
Fit 0-1 value to new min and max.
fit10(num, min, max)
Fit 1-0(invert from 0-1)to new min and max.
fit11(num, min, max)
Fit (-1)-1 to new min and max.
fit(num, oldmin, oldmax, newmin, newmax)
Fit old range into new range. Outside the range will be clamped out.
efit(num, oldmin, oldmax, newmin, newmax)
Fit old range into new range without clamping.
Fit Range