{"name":"BIS_fnc_dotProduct","operator":null,"title":"BIS fnc dotProduct","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_dotProduct","revid":341319,"updated":"2023-05-21T15:52:21Z","groups":["Vectors"],"status":"ok","replaced_by":[],"games":[{"game":"arma2","name":"Arma 2","version":"1.00"},{"game":"arma2oa","name":"Arma 2: Operation Arrowhead","version":"1.50"},{"game":"tkoh","name":"Take On Helicopters","version":"1.00"},{"game":"arma3","name":"Arma 3","version":"0.50"}],"since":{"game":"arma2","name":"Arma 2","version":"1.00"},"arma3_since":"0.50","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"description":"Dot product of two vectors. \n\n> [!NOTE]\n> **Arma 3:** In Arma 3 use vectorDotProduct.","syntaxes":[{"syntax":"[vector1, vector2] call BIS_fnc_dotProduct","since":null,"effect":null,"exec":null,"params":[{"name":"vector1","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"vector1: Array"},{"name":"vector2","type":"Array","optional":false,"default":null,"description":null,"types":["Array"],"since":null,"text":"vector2: Array"}],"returns":{"type":"Number","types":["Number"],"description":null,"text":"Number"}}],"examples":[{"text":"```sqf\n[[1,2,3], [1,2,3]] call BIS_fnc_dotProduct; // returns: 1*1 + 2*2 + 3*3 = 14\n```","code":["[[1,2,3], [1,2,3]] call BIS_fnc_dotProduct; // returns: 1*1 + 2*2 + 3*3 = 14"]},{"text":"```sqf\n[[1,2,3,4], [1,2,3,4]] call BIS_fnc_dotProduct; // returns 1*1 + 2*2 + 3*3 + 4*4 = 30\n```","code":["[[1,2,3,4], [1,2,3,4]] call BIS_fnc_dotProduct; // returns 1*1 + 2*2 + 3*3 + 4*4 = 30"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["vectorDotProduct"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Vectors","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}