interpolation/Linear/Float
< Interpolation | Linear
Jump to navigation
Jump to search
Revision as of 02:24, 14 September 2011 by Nexii Malthus (talk | contribs) (Created page with "{{LSL_Function |mode=user |func=fLin |p1_type=float|p1_name=x |p2_type=float|p2_name=y |p3_type=float|p3_name=t |return_type=float |return_value=returns the interpolation between…")
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;
}</lsl>
Examples
<lsl>float value = fLin(-5, 15, 0.6); // value == 7</lsl>