interpolation/Linear/Float
< Interpolation | Linear
Jump to navigation
Jump to search
Revision as of 03:37, 14 September 2011 by Nexii Malthus (talk | contribs)
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Specification
<lsl>float fLin(float x, float y, float t) {
return x*(1-t) + y*t;
} // Released into public domain. By Nexii Malthus.</lsl>
Examples
<lsl>float value = fLin(-5, 15, 0.6); // value == 7</lsl>