{"name":"BIS_fnc_boundingBoxCorner","title":"BIS fnc boundingBoxCorner","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_boundingBoxCorner","revid":292391,"updated":"2021-08-07T23:55:04Z","groups":["Object Manipulation"],"status":"ok","games":{"arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2oa 1.50","arma3_since":"0.50","description":"Returns position of all four bounding box corners OR Returns position of the nearest corner to the given position","syntaxes":[{"syntax":"[param0, param1] call BIS_fnc_boundingBoxCorner","params":[{"name":"param0","type":"Object","type_expr":"Object","description":"object with bounding box","text":"0: OBJECT - object with bounding box","source":"docblock"},{"name":"param1","type":"Array, Object","type_expr":"Array | Object","description":"position for which the nearest corner is returned","text":"1: ARRAY or OBJECT - position for which the nearest corner is returned","source":"docblock"}],"returns":{"type":"Array","type_expr":"Array","description":"4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;","text":"ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;","source":"docblock"},"inferred":true}],"docblock":{"text":"Description:\n    Returns position of all four bounding box corners\n    OR\n    Returns position of the nearest corner to the given position\n\nParameter(s):\n    _this: OBJECT - object with bounding box\n    OR\n    _this: ARRAY in format:\n        0: OBJECT - object with bounding box\n        1: ARRAY or OBJECT - position for which the nearest corner is returned\nReturns:\n    ARRAY in format [pos1, pos2, pos3, pos4] - 4 corners of the bounding box\n    OR\n    ARRAY in format [x,y,z] - position of the nearest corner\n\nExample 1:\n    _corners = car call BIS_fnc_boundingBoxCorner;\n\nExample 2:\n    _nearestCorner = [car, player] call BIS_fnc_boundingBoxCorner;"},"filled_from_docblock":["description","params","syntax","returns"]}