BIS fnc easeIn: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - "\[\[Category\:Function Group\: Interp(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.78 | |1.78 | ||
|gr1 = Interpolation | |gr1 = Interpolation | ||
<!---|arg= local |Multiplayer Arguments=---> | <!---|arg= local |Multiplayer Arguments=---> | ||
Line 11: | Line 11: | ||
<!---|eff= local |Multiplayer Effects=---> | <!---|eff= local |Multiplayer Effects=---> | ||
| Wraps [[BIS_fnc_lerp]]. | | Wraps [[BIS_fnc_lerp]]. | ||
|[a, b, alpha, exp] call [[BIS_fnc_easeIn]] | |[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) | ||
|p2= b: [[Number]] - (Optional, default 0) Second point (end) | |p2= b: [[Number]] - (Optional, default 0) Second point (end) | ||
|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 | ||
|[[Number]] - Interpolated value | |[[Number]] - Interpolated value | ||
|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> | ||
|exec= call |Execution= | |exec= call |Execution= | ||
| [[BIS_fnc_lerp]], [[:Category:Function Group: Interp|Function Group: Interp]] | | [[BIS_fnc_lerp]], [[:Category:Function Group: Interp|Function Group: Interp]] | ||
}} | }} |
Revision as of 23:02, 17 January 2021
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: 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