{"name":"BIS_fnc_inAngleSector","title":"BIS fnc inAngleSector","type":"function","url":"https://community.bistudio.com/wiki/BIS_fnc_inAngleSector","revid":337353,"updated":"2023-01-18T17:06:32Z","groups":["Geometry"],"status":"ok","games":{"arma3":"1.00"},"since":"arma3 1.00","arma3_since":"1.00","description":"Checks if a position lies within an angle sector.","syntaxes":[{"syntax":"[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector","params":[{"name":"center","type":"Array","description":"center position","type_expr":"Array","text":"center : Array - center position"},{"name":"centerAngle","type":"Number","description":"defines the center angle of the sector","type_expr":"Number","text":"centerAngle : Number - defines the center angle of the sector"},{"name":"sectorWidth","type":"Number","description":"defines the width of the sector in degrees","type_expr":"Number"},{"name":"position","type":"Array","description":"the position which should be checked","type_expr":"Array"}],"returns":{"type":"Boolean","type_expr":"Boolean","description":"true if the position lies within the defined sector"}}],"examples":[{"code":["[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;"]}],"see_also":["BIS_fnc_isInFrontOf"]}