BIS fnc easeIn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "|gr1 = Interp |GROUP1=" to "|gr1 = Interpolation |GROUP1=")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2")
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function


| arma3 |Game name=
|game1= arma3
|version1= 1.78


|1.78|Game version=
|gr1= Interpolation


|gr1 = Interpolation |GROUP1=
|descr= Wraps [[BIS_fnc_lerp]].


<!---|arg= local |Multiplayer Arguments=--->
|s1= [a, b, alpha, exp] call [[BIS_fnc_easeIn]]


<!---|eff= local |Multiplayer Effects=--->
|p1= a: [[Number]] - (Optional, default 0) first point (start)


| Wraps [[BIS_fnc_lerp]]. |Description=
|p2= b: [[Number]] - (Optional, default 0) second point (end)


|[a, b, alpha, exp] call [[BIS_fnc_easeIn]] |Syntax=
|p3= alpha: [[Number]] - (Optional, default 0) original interpolation speed


|p1= a: [[Number]] - (Optional, default 0) First point (start) |Parameter 1=
|p4= exp: [[Number]] - (Optional, default 2) power applied to alpha


|p2= b: [[Number]] - (Optional, default 0) Second point (end) |Parameter 2=
|r1= [[Number]] - interpolated value


|p3= alpha: [[Number]] - (Optional, default 0) Original interpolation speed |Parameter 3=
|x1= <sqf>[] call BIS_fnc_easeIn; // returns 0</sqf>


|p4= exp: [[Number]] - (Optional, default 2) Power applied to alpha |Parameter 4=
|x2= <sqf>[0, 2, 0.5] call BIS_fnc_easeIn; // returns 0.5</sqf>


|[[Number]] - Interpolated value|Return value=
|x3= <sqf>([0, 2, 0.5] call BIS_fnc_lerp) == ([0, 2, 0.5, 1] call BIS_fnc_easeIn); // returns true</sqf>


|x1= <code>[] [[call]] BIS_fnc_easeIn; {{cc|returns 0}}</code> |Example 1=
|seealso= [[BIS_fnc_lerp]] [[:Category:Function Group: Interpolation|Function Group: Interpolation]]
|x2= <code>[0, 2, 0.5] [[call]] BIS_fnc_easeIn; {{cc|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) {{cc|returns [[true]]}}</code> |Example 3=
 
|exec= call |Execution=
 
| [[BIS_fnc_lerp]], [[:Category:Function Group: Interp|Function Group: Interp]] |See also=
}}
}}
[[Category:Function Group: Interp|{{uc:easeIn}}]]

Latest revision as of 15:33, 8 November 2023

Hover & click on the images for description

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:
[] 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_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