BIS fnc berpVector: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " |p1= |r1= |x1= }}" to " |p1= |r1= |x1= |seealso= }}")
(Created page proper)
Line 6: Line 6:
|gr1= Interpolation
|gr1= Interpolation


|descr= ''N/A''
|descr= Wrapper for [[BIS_fnc_berp]] applying to each respective element of current and target vectors.


|s1= [] call [[BIS_fnc_berpVector]]
|s1= [a, b, delta] call [[BIS_fnc_berpVector]]


|p1=  
|p1=a: [[Array]] - The current vector


|r1=
|r1=[[Array]] - The interpolated vector


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


|seealso=
|seealso=[[BIS_fnc_berp]]
}}
|p2=b: [[Array]] - The target vector|p3=delta: [[Number]] - (Optional, default 0) The delta time, 0..1}}

Revision as of 04:08, 20 February 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 - The current vector
b: Array - The target vector
delta: Number - (Optional, default 0) The delta time, 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