Houdini 20.5 Nodes APEX nodes

array::Lerp<T>

Performs linear interpolation between two arrays element-wise.

On this page
Since 20.0

Performs linear interpolation between two input arrays, where i is the index to the array element:

result[i] = a[i] + (b[i] - a[i]) * biases[i]

The three input arrays must have the same size.

Inputs

a: FloatArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

The first array.

b: FloatArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

The second array.

biases: FloatArray

Bias values between 0 and 1 produce a result that blends between the first and second input values. Bias values outside of this range are extrapolated linearly.

Outputs

result: FloatArray, Matrix3Array, Matrix4Array, Vector2Array, Vector3Array, Vector4Array

An array with the result of the linear interpolation.

See also

APEX nodes