{"name":"BIS_fnc_distance2Dsqr","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":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","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","params":[{"name":"pointA","type":"Object or Position","type_expr":"Object | Position"},{"name":"pointB","type":"Object or Position","type_expr":"Object | Position"}],"returns":{"type":"Number","type_expr":"Number","description":"squared distance"}}],"examples":[{"code":["[player, soldier_1] call BIS_fnc_distance2Dsqr;"]},{"code":["[[100,100,0], [0,0,0]] call BIS_fnc_distance2Dsqr;"]}],"see_also":["BIS_fnc_distance2D","distance2D","distance"]}