BIS fnc easeIn: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Function|= Comments | arma3 |Game name= |1.78|Game version= <!---|arg= local |Multiplayer Arguments=---> <!---|eff= local |Multiplayer Effects=---> | ''N/A'' |Descripti...") |
Lou Montana (talk | contribs) m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2") |
||
(21 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{RV|type=function | ||
| arma3 | | |game1= arma3 | ||
|version1= 1.78 | |||
| | |gr1= Interpolation | ||
|descr= Wraps [[BIS_fnc_lerp]]. | |||
|s1= [a, b, alpha, exp] call [[BIS_fnc_easeIn]] | |||
| | |p1= a: [[Number]] - (Optional, default 0) first point (start) | ||
| | |p2= b: [[Number]] - (Optional, default 0) second point (end) | ||
| | |p3= alpha: [[Number]] - (Optional, default 0) original interpolation speed | ||
| | |p4= exp: [[Number]] - (Optional, default 2) power applied to alpha | ||
| | |r1= [[Number]] - interpolated value | ||
| | |x1= <sqf>[] call BIS_fnc_easeIn; // returns 0</sqf> | ||
| | | |x2= <sqf>[0, 2, 0.5] call BIS_fnc_easeIn; // returns 0.5</sqf> | ||
|x3= <sqf>([0, 2, 0.5] call BIS_fnc_lerp) == ([0, 2, 0.5, 1] call BIS_fnc_easeIn); // returns true</sqf> | |||
|seealso= [[BIS_fnc_lerp]] [[:Category:Function Group: Interpolation|Function Group: Interpolation]] | |||
}} | }} | ||
Latest revision as of 15:33, 8 November 2023
Description
- Description:
- Wraps BIS_fnc_lerp.
- Execution:
- call
- Groups:
- Interpolation
Syntax
- Syntax:
- [a, b, alpha, exp] call BIS_fnc_easeIn
- Parameters:
- a: Number - (Optional, default 0) first point (start)
- b: Number - (Optional, default 0) second point (end)
- alpha: Number - (Optional, default 0) original interpolation speed
- exp: Number - (Optional, default 2) power applied to alpha
- Return Value:
- Number - interpolated value
Examples
- Example 1:
- Example 2:
- Example 3:
Additional Information
- See also:
- BIS_fnc_lerp Function Group: Interpolation
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