Please enable JavaScript to view this site.

ModelMuse Help

Navigation: Formulas > Functions > Math

Interpolate

Scroll Prev Top Next More

Interpolate(Position, Value1, Distance1, Value2, Distance2). Interpolate returns (Position-Distance1)/(Distance2-Distance1)*(Value2-Value1)+Value1. As its name implies, this is an interpolation between Value1 and Value2 based on where Position is between Distance1 and Distance2. If Position is not between Distance1 and Distance2, Interpolate extrapolates a value. See also MultiInterpolate.

Example: Interpolate(FractionOfObjectLength, 0.00015, 0., 0.0002, 1.)

This example formula will interpolate along the length of an object. It will assign a value of 0.00015 at the first point and a value of 0.0002 at the last point. Intermediate values will be assigned at intermediate distances along the length of the object.