{"name":"BIS_fnc_lerpVector","title":"BIS fnc lerpVector","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_lerpVector","revid":348754,"updated":"2023-11-08T14:33:09Z","groups":["Vectors"],"status":"ok","games":{"arma3":"1.78"},"since":"arma3 1.78","arma3_since":"1.78","description":"Given two different vectors A and B, think of a straight line drawn between them, *alpha* saying how far along that line is the wanted vector.","syntaxes":[{"syntax":"[currentValue, targetValue, alpha] call BIS_fnc_lerpVector","params":[{"name":"currentValue","type":"Array","description":"vector start","type_expr":"Array"},{"name":"targetValue","type":"Array","description":"vector end","type_expr":"Array"},{"name":"alpha","type":"Number","description":"alpha","type_expr":"Number"}],"returns":{"type":"Array","type_expr":"Array","description":"interpolated vector"}}],"examples":[{"code":["[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]"]}],"see_also":["BIS_fnc_clerp","BIS_fnc_slerp","BIS_fnc_lerp","BIS_fnc_inverseLerp"]}