{"name":"BIS_fnc_lerpVector","operator":null,"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","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.78"}],"since":{"game":"arma3","name":"Arma 3","version":"1.78"},"arma3_since":"1.78","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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","since":null,"effect":null,"exec":null,"params":[{"name":"currentValue","type":"Array","optional":false,"default":null,"description":"vector start","types":["Array"],"since":null,"text":"currentValue: Array - vector start"},{"name":"targetValue","type":"Array","optional":false,"default":null,"description":"vector end","types":["Array"],"since":null,"text":"targetValue: Array - vector end"},{"name":"alpha","type":"Number","optional":false,"default":null,"description":"alpha","types":["Number"],"since":null,"text":"alpha: Number - alpha"}],"returns":{"type":"Array","types":["Array"],"description":"interpolated vector","text":"Array - interpolated vector"}}],"examples":[{"text":"```sqf\n[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]\n```","code":["[[1592.74,6558.36,0], [2240.43,7459.69,0], 0.3] call BIS_fnc_lerpVector; // returns [1787.05,6828.76,0]"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_clerp","BIS_fnc_slerp","BIS_fnc_lerp","BIS_fnc_inverseLerp"],"notes":[],"categories":["Arma 3: Functions","Arma 3: New Functions","Function Group: Vectors","Functions","Introduced with Arma 3 version 1.78"],"docblock":null,"filled_from_docblock":[]}