BIS fnc inverseLerp: Difference between revisions
Jump to navigation
Jump to search
m (infobox to template) |
m (filled page) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | |game1= arma3 | ||
|1.78 | |version1= 1.78 | ||
<! | <!--|exec= server|=--> | ||
<! | <!--|arg= local--> | ||
| | <!--|eff= local--> | ||
|descr= Inverse of [[BIS_fnc_lerp]]. | |||
|s1= [currentValue, targetValue, alpha] call [[BIS_fnc_inverseLerp]] | |||
|p1= currentValue: [[Number]] - Start | |||
| | |p2= targetValue: [[Number]] - End | ||
| | |p3= alpha: [[Number]] - Alpha | ||
| | |r1= [[Number]] - Interpolated value | ||
|x1= <code></code> | |x1= <code>[10,20,0.5] [[call]] [[BIS_fnc_inverseLerp]];</code> | ||
|exec= call | | |exec= call | ||
|seealso= [[BIS_fnc_clerp]] [[BIS_fnc_slerp]] [[BIS_fnc_lerp]] [[BIS_fnc_lerpVector]] | |||
}} | }} | ||
[[Category:Function Group: Interp|{{uc:inverseLerp}}]] | [[Category:Function Group: Interp|{{uc:inverseLerp}}]] | ||
[[Category:Functions|{{uc:inverseLerp}}]] | [[Category:Functions|{{uc:inverseLerp}}]] | ||
[[Category:{{Name|arma3}}: Functions|{{uc:inverseLerp}}]] | [[Category:{{Name|arma3}}: Functions|{{uc:inverseLerp}}]] |
Revision as of 17:33, 9 January 2020
Description
- Description:
- Inverse of BIS_fnc_lerp.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [currentValue, targetValue, alpha] call BIS_fnc_inverseLerp
- Parameters:
- currentValue: Number - Start
- targetValue: Number - End
- alpha: Number - Alpha
- Return Value:
- Number - Interpolated value
Examples
- Example 1:
[10,20,0.5] call BIS_fnc_inverseLerp;
Additional Information
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