Difference between revisions of "Interpolation/Cosine/Float"

From Second Life Wiki
Jump to navigation Jump to search
m (<lsl> tag to <source>)
 
Line 9: Line 9:
|func_desc=[[Image:Interp_Chart2.png|frame|right]]
|func_desc=[[Image:Interp_Chart2.png|frame|right]]
Cosine interpolation between two floating point values.
Cosine interpolation between two floating point values.
|spec=<lsl>float fCos(float x, float y, float t) {
|spec=<source lang="lsl2">float fCos(float x, float y, float t) {
     float F = (1-llCos(t*PI))/2;
     float F = (1-llCos(t*PI))/2;
     return x*(1-F)+y*F;
     return x*(1-F)+y*F;
}
}
// Released into public domain. By Nexii Malthus.</lsl>
// Released into public domain. By Nexii Malthus.</source>
|examples=<lsl></lsl>
|examples=<source lang="lsl2"></source>
|cat1=Examples
|cat1=Examples
}}
}}

Latest revision as of 16:00, 24 January 2015