BIS fnc easeIn: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(\[\[[a-zA-Z]+\]\].+) * \|x1=" to " |r1= $1 |x1=")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=function
{{RV|type=function


| arma3
|game1= arma3
 
|version1= 1.78
|1.78


|gr1= Interpolation
|gr1= Interpolation


| Wraps [[BIS_fnc_lerp]].
|descr= Wraps [[BIS_fnc_lerp]].


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


|p1= a: [[Number]] - (Optional, default 0) First point (start)
|p1= a: [[Number]] - (Optional, default 0) First point (start)
Line 22: Line 21:


|x1= <code>[] [[call]] BIS_fnc_easeIn; {{cc|returns 0}}</code>
|x1= <code>[] [[call]] BIS_fnc_easeIn; {{cc|returns 0}}</code>
|x2= <code>[0, 2, 0.5] [[call]] BIS_fnc_easeIn; {{cc|returns 0.5}}</code>
|x2= <code>[0, 2, 0.5] [[call]] BIS_fnc_easeIn; {{cc|returns 0.5}}</code>
|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>
|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>


|seealso= [[BIS_fnc_lerp]], [[:Category:Function Group: Interp|Function Group: Interp]]
|seealso= [[BIS_fnc_lerp]], [[:Category:Function Group: Interpolation|Function Group: Interpolation]]
}}
}}

Revision as of 17:22, 10 June 2021

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_lerpFunction 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