LERP

THE BOX'S MAIN HELP:
This returns a linear interpolation between A and B, using X as 
the percentage.  The data type returned will be the same type as the
inputs.  If X <= 0, A will be returned; if X >= 1, B will be returned.

A (input):
The first value to be mixed.  This value is returned if X is 0.
This may be a scalar, vector or color, but must be the same type as B.
If X <= 0, A will be returned; if X >= 1, B will be returned.

B (input):
The second value to be mixed.  This value is returned if X is 1.
This may be a scalar, vector or color, but must be the same type as A.
If X <= 0, A will be returned; if X >= 1, B will be returned.

X (input):
This is the mixer, for best results X should lie in the range [0,1].
This input may be the same data type as A and B or a scalar.
If X <= 0, A will be returned; if X >= 1, B will be returned.

OUT (output):
This returns a linear interpolation between A and B, using X as 
the percentage.  The data type returned will be the same type as the
inputs.  If X <= 0, A will be returned; if X >= 1, B will be returned.

<-- BACK TO Interpolation

© Copyright 1996,1998 Cinema Graphics Inc. All Rights reserved.