BIS fnc berpVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Function|= Comments " to "{{Function|Comments= ")
m (Text replacement - "(\|p[0-9]+ *= *[^(]+\(Optional(, default[^)]*)\) )T([a-z])" to "$1t$3")
 
(27 intermediate revisions by 3 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


<!---|arg= local |Multiplayer Arguments=--->
|descr= Wrapper for [[BIS_fnc_berp]] applying to each respective element of current and target vectors.


<!---|eff= local |Multiplayer Effects=--->
|s1= [a, b, delta] call [[BIS_fnc_berpVector]]


| ''N/A'' |Description=
|p1= a: [[Array]] format [[Vector3D]] - (Optional, default [0,0,0]) the current vector


|[] call [[BIS_fnc_berpVector]]|Syntax=
|p2= b: [[Array]] format [[Vector3D]] - (Optional, default [0,0,0]) the target vector


|p1= parameter: Datatype - (Optional, default defValue) description |Parameter 1=
|p3= delta: [[Number]] - (Optional, default 0) the delta time in range 0..1


|Datatype - description|Return value=
|r1= [[Array]] - the interpolated vector


|x1= <code></code>|Example 1=
|x1= <sqf>private _vector = [[1,2,3], [11,12,13], 0.1] call BIS_fnc_berpVector;</sqf>


|exec= call |Execution=
|seealso= [[BIS_fnc_berp]]
 
| |See also=
}}
}}
[[Category:Function Group: Interp|{{uc:berpVector}}]]
[[Category:Functions|{{uc:berpVector}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:berpVector}}]]

Latest revision as of 12:32, 8 November 2023

Hover & click on the images for description

Description

Description:
Wrapper for BIS_fnc_berp applying to each respective element of current and target vectors.
Execution:
call
Groups:
Interpolation

Syntax

Syntax:
[a, b, delta] call BIS_fnc_berpVector
Parameters:
a: Array format Vector3D - (Optional, default [0,0,0]) the current vector
b: Array format Vector3D - (Optional, default [0,0,0]) the target vector
delta: Number - (Optional, default 0) the delta time in range 0..1
Return Value:
Array - the interpolated vector

Examples

Example 1:
private _vector = [[1,2,3], [11,12,13], 0.1] call BIS_fnc_berpVector;

Additional Information

See also:
BIS_fnc_berp

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