BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
m (template:command argument fix) |
m (template:command argument fix) |
||
Line 14: | Line 14: | ||
| [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector''' |SYNTAX= | | [center, centerAngle, sectorWidth, position] call '''BIS_fnc_inAngleSector''' |SYNTAX= | ||
|p1= center : [[Array]] - Center position |= | |p1= center : [[Array]] - Center position |PARAMETER1= | ||
|p2= centerAngle : [[Number]] - Defines the center angle of the sector |= | |p2= centerAngle : [[Number]] - Defines the center angle of the sector |PARAMETER2= | ||
|p3= sectorWidth: [[Number]] - Defines the width of the sector in degrees |= | |p3= sectorWidth: [[Number]] - Defines the width of the sector in degrees |PARAMETER3= | ||
|p4= position: [[Array]] - The position which should be checked |= | |p4= position: [[Array]] - The position which should be checked |PARAMETER4= | ||
| [[Boolean]]: Returns [[true]] if the position lies within sector|RETURNVALUE= | | [[Boolean]]: Returns [[true]] if the position lies within sector|RETURNVALUE= |
Revision as of 14:30, 7 April 2019
Description
- Description:
- Checks if a position lies within an angle sector.
- Execution:
- call
- Groups:
- Uncategorised
Syntax
- Syntax:
- [center, centerAngle, sectorWidth, position] call BIS_fnc_inAngleSector
- Parameters:
- center : Array - Center position
- centerAngle : Number - Defines the center angle of the sector
- sectorWidth: Number - Defines the width of the sector in degrees
- position: Array - The position which should be checked
- Return Value:
- Boolean: Returns true if the position lies within sector
Examples
Additional Information
- See also:
- See also needed
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note