LerpVector: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Function|Client & Server|1.0.3}} {{FuncDescription|Interpolates between vector A and vector B with the parameter t. }} {{FuncSyntax|LerpVector(t, aX, aY, aZ, bX, bY,..." |
No edit summary |
||
Line 22: | Line 22: | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
* [[Lerp]] |
Latest revision as of 18:07, 7 February 2020
Description
Interpolates between vector A and vector B with the parameter t.
Syntax
LerpVector(t, aX, aY, aZ, bX, bY, bZ)
Parameters
- t
The interpolant, normally between 0.0 and 1.0 - aX
Interpolate from X. - aY
Interpolate from Y. - aZ
Interpolate from Z. - bX
Interpolate to X. - bY
Interpolate to Y. - bZ
Interpolate to Z.
Return Value
- Returns the interpolated vector (3 floats).
Example
print(LerpVector(0.5, 2.0, 4.0, 1.0, 4.0, 5.0, 2.0))