Houdini 20.5 Nodes APEX nodes

Lerp<T>

Performs linear interpolation between the input values.

On this page
Since 20.0

Linear interpolation is defined as lerp(a, b, bias) = a + (b - a) * bias. When operating on vectors and matrices, the interpolation is performed component-wise.

Inputs

a: Float, Matrix3, Matrix4, Vector2, Vector3, Vector4

The first input value.

b: Float, Matrix3, Matrix4, Vector2, Vector3, Vector4

The second input value.

bias: Float

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: Float, Matrix3, Matrix4, Vector2, Vector3, Vector4

The result of the linear interpolation.

See also

APEX nodes