interpolation/Cubic/Float
< Interpolation | Cubic
Jump to navigation
Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Specification
float fCub(float a, float b, float c, float d,float t) {
float P = (d-c)-(a-b);
return P*llPow(t,3) + ((a-b)-P)*llPow(t,2) + (c-a)*t + b;
}
// Released into public domain. By Nexii Malthus.
Examples