Difference between revisions of "Interpolation/Linear/Vector"

From Second Life Wiki
Jump to navigation Jump to search
(Created page with "{{LSL_Function |mode=user |func=vLin |p1_type=vector|p1_name=x |p2_type=vector|p2_name=y |p3_type=float|p3_name=t |return_type=vector |return_value=returns the interpolation betw…")
 
m
Line 11: Line 11:
|spec=<lsl>vector vLin(vector x, vector y, float t){
|spec=<lsl>vector vLin(vector x, vector y, float t){
     return x*(1-t) + y*t;
     return x*(1-t) + y*t;
}</lsl>
}
// Released into public domain. By Nexii Malthus.</lsl>
|examples=<lsl>
|examples=<lsl>
vector x = <-5, 1, 10>;
vector x = <-5, 1, 10>;

Revision as of 02:36, 14 September 2011