lkspline VEX function

Computes a linear spline between the key points.

Contexts: image3d, chop, cop, pop, sop, surface, displace, fog, light, shadow, photon, cvex

See also: spline, kspline

  1. vector4 lkspline( float t; vector4 v1; float k2; vector4 v2; float k2; ... )

  2. vector lkspline( float t; vector v1; float k1; vector v2; float k2; ... )

  3. float lkspline( float t; float v1; float k1; float v2; float k2; ... )

Computes a linear spline between the key points. The values are spaced according to the keys given. The keys should be specified in ascending order or the results will be unpredictable.

You should use the more flexible spline and kspline functions instead of this.