---
name: "BIS_fnc_inAngleSector"
type: function
status: ok
groups: ["Geometry"]
arma3_since: "1.00"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/BIS_fnc_inAngleSector
revid: 337353
updated: 2023-01-18T17:06:32Z
---

# BIS_fnc_inAngleSector

*Function · Geometry · Arma 3 v1.00*

## Description

Checks if a position lies within an angle sector.

## Syntax

```sqf
[center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector
```

**Parameters:**

- `center` : [Array](../topics/Array.md) - center position
- `centerAngle` : [Number](../topics/Number.md) - defines the center angle of the sector
- `sectorWidth`: [Number](../topics/Number.md) - defines the width of the sector in degrees
- `position`: [Array](../topics/Array.md) - the position which should be checked

**Returns:** [Boolean](../topics/Boolean.md) - [true](../commands/true.md) if the position lies within the defined sector

## Examples

### Example 1

```sqf
[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;
```

## See also

[BIS_fnc_isInFrontOf](../functions/BIS_fnc_isInFrontOf.md)

<sub>Source: [BI Community Wiki — BIS fnc inAngleSector](https://community.bistudio.com/wiki/BIS_fnc_inAngleSector) (revision 337353).</sub>
