BIS fnc easeIn: Difference between revisions

From Bohemia Interactive Community
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...")
 
(Added desc, examples, parameters, returns, see also)
Line 9: Line 9:
<!---|eff= local |Multiplayer Effects=--->
<!---|eff= local |Multiplayer Effects=--->


| ''N/A'' |Description=
| Wraps [[BIS_fnc_lerp]]. |Description=


|[] call [[BIS_fnc_easeIn]]|Syntax=
|[a, b, alpha, exp] call [[BIS_fnc_easeIn]]|Syntax=


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p1= a: [[Number]] - (Optional, default 0) First point (start) |= Parameter 1
|p2= b: [[Number]] - (Optional, default 0) Second point (end) |= Parameter 2
|p3= alpha: [[Number]] - (Optional, default 0) Original interpolation speed |= Parameter 3
|p4= exp: [[Number]] - (Optional, default 2) Power applied to alpha |Parameter 4=


|Datatype - description|Return value=
|[[Number]] - Interpolated value|Return value=


|x1= <code></code>|Example 1=
|x1= <code>[] [[call]] BIS_fnc_easeIn; {{codecomment|// Returns 0}}</code>|Example 1=
|x2= <code>[0, 2, 0.5] [[call]] BIS_fnc_easeIn; {{codecomment|// Returns 0.5}}</code>|Example 2=
|x3= <code>([0, 2, 0.5] [[call]] [[BIS_fnc_lerp]]) [[a == b|==]] ([0, 2, 0.5, 1] [[call]] BIS_fnc_easeIn) {{codecomment|// Returns [[true]]}}</code>|Example 3=


|exec= call |Execution=
|exec= call |Execution=


| |See also=
| [[BIS_fnc_lerp]], [[:Category:Function Group: Interp]] |See also=
}}
}}



Revision as of 12:58, 22 April 2020

Hover & click on the images for description

Description

Description:
Wraps BIS_fnc_lerp.
Execution:
call
Groups:
Uncategorised

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:
[] call BIS_fnc_easeIn; // Returns 0
Example 2:
[0, 2, 0.5] call BIS_fnc_easeIn; // Returns 0.5
Example 3:
([0, 2, 0.5] call BIS_fnc_lerp) == ([0, 2, 0.5, 1] call BIS_fnc_easeIn) // Returns true

Additional Information

See also:
BIS_fnc_lerpCategory:Function Group: Interp

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