BIS fnc lerp: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 5: | Line 5: | ||
|1.00|Game version= | |1.00|Game version= | ||
|gr1 = Interpolation |GROUP1= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 35: | Line 37: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
[[Category:Functions|{{uc:lerp}}]] | [[Category:Functions|{{uc:lerp}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:lerp}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:lerp}}]] |
Revision as of 23:47, 11 October 2020
Description
- Description:
- Linear floating point interpolation. Linear Interpolation (Wikipedia)
- Execution:
- call
- Groups:
- Interpolation
Syntax
- Syntax:
- [currentValue,targetValue,alpha] call BIS_fnc_lerp
- Parameters:
- currentValue: Number - First point (start)
- targetValue: Number - Second point (end)
- alpha: Number - Interpolation speed
- Return Value:
- Number - Interpolated value
Examples
- Example 1:
[1,10,0.5] call BIS_fnc_lerp;// Returns 5.5
Additional Information
- See also:
- Category:Command Group: Math
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note