{"name":"BIS_fnc_getLineDist","title":"BIS fnc getLineDist","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_getLineDist","revid":329321,"updated":"2022-07-27T10:15:11Z","groups":["Geometry"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Return the distance between two sections of a virtual straight line.","syntaxes":[{"syntax":"[start1, length1, start2, length2] call BIS_fnc_getLineDist","params":[{"name":"start1","type":"Number","description":"segment 1 beginning. Can be negative","type_expr":"Number"},{"name":"length1","type":"Number","description":"segment 1 length. Can be negative","type_expr":"Number"},{"name":"start2","type":"Number","description":"segment 2 beginning. Can be negative","type_expr":"Number"},{"name":"length2","type":"Number","description":"segment 2 length. Can be negative","type_expr":"Number"}],"returns":{"type":"Number","type_expr":"Number"}}],"examples":[{"code":["private _distance = [0,5,15,20] call BIS_fnc_getLineDist; // returns 10"]}],"see_also":["distance"]}