{"name":"BIS_fnc_magnitudeSqr","operator":null,"title":"BIS fnc magnitudeSqr","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_magnitudeSqr","revid":349347,"updated":"2023-11-08T14:53:31Z","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":"Returns the square magnitude of an array of numbers. The vector can have any number of elements. \n\n> [!NOTE]\n> **Arma 3:** Use vectorMagnitudeSqr instead","syntaxes":[{"syntax":"vector call BIS_fnc_magnitudeSqr","since":null,"effect":null,"exec":null,"params":[{"name":"vector","type":"Array","optional":false,"default":null,"description":"vector","types":["Array"],"since":null,"text":"vector: Array - vector"}],"returns":{"type":"Array","types":["Array"],"description":"new vector","text":"Array - new vector"}}],"examples":[{"text":"```sqf\n[5,3] call BIS_fnc_magnitudeSqr;\n```","code":["[5,3] call BIS_fnc_magnitudeSqr;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_crossProduct","BIS_fnc_magnitude","BIS_fnc_vectorFromXToY"],"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":[]}