{"name":"BIS_fnc_distance2Dsqr","operator":null,"title":"BIS fnc distance2Dsqr","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_distance2Dsqr","revid":347966,"updated":"2023-11-08T08:53:39Z","groups":["Geometry"],"status":"deprecated","replaced_by":["distanceSqr"],"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 of the distance between the two objects or positions \"as the crow flies\" (ignoring elevation).\n\n> [!NOTE]\n> This function became obsolete with the introduction of distanceSqr.","syntaxes":[{"syntax":"[pointA, pointB] call BIS_fnc_distance2Dsqr","since":null,"effect":null,"exec":null,"params":[{"name":"pointA","type":"Object or Position","optional":false,"default":null,"description":null,"types":["Object","Position"],"since":null,"text":"pointA: Object or Position"},{"name":"pointB","type":"Object or Position","optional":false,"default":null,"description":null,"types":["Object","Position"],"since":null,"text":"pointB: Object or Position"}],"returns":{"type":"Number","types":["Number"],"description":"squared distance","text":"Number - squared distance"}}],"examples":[{"text":"```sqf\n[player, soldier_1] call BIS_fnc_distance2Dsqr;\n```","code":["[player, soldier_1] call BIS_fnc_distance2Dsqr;"]},{"text":"```sqf\n[[100,100,0], [0,0,0]] call BIS_fnc_distance2Dsqr;\n```","code":["[[100,100,0], [0,0,0]] call BIS_fnc_distance2Dsqr;"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["BIS_fnc_distance2D","distance2D","distance"],"notes":[],"categories":["Arma 2: Functions","Arma 2: New Functions","Arma 2: Operation Arrowhead: Functions","Arma 3: Functions","Function Group: Geometry","Functions","Introduced with Arma 2 version 1.00","Take On Helicopters: Functions"],"docblock":null,"filled_from_docblock":[]}