BIS fnc easeIn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )O([a-z])" to "$1o$3")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )P([a-z])" to "$1p$3")
Line 16: Line 16:
|p3= alpha: [[Number]] - (Optional, default 0) original interpolation speed
|p3= alpha: [[Number]] - (Optional, default 0) original interpolation speed


|p4= exp: [[Number]] - (Optional, default 2) Power applied to alpha
|p4= exp: [[Number]] - (Optional, default 2) power applied to alpha


|r1= [[Number]] - Interpolated value
|r1= [[Number]] - Interpolated value

Revision as of 13:32, 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