BIS fnc inAngleSector: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "BIS fnc " to "BIS_fnc_") |
Lou Montana (talk | contribs) m (Some wiki formatting) |
||
Line 6: | Line 6: | ||
|gr1= Geometry | |gr1= Geometry | ||
|descr=Checks if a position lies within an angle sector. | |descr= [[File:BIS_fnc_inAngleSector.jpg|500px|right]] | ||
Checks if a position lies within an angle sector. | |||
|s1= [center, centerAngle, sectorWidth, position] call [[BIS_fnc_inAngleSector]] | |s1= [center, centerAngle, sectorWidth, position] call [[BIS_fnc_inAngleSector]] | ||
|p1= center : [[Array]] - | |p1= center : [[Array]] - center position | ||
| | |p2= centerAngle : [[Number]] - defines the center angle of the sector | ||
|x1=<sqf>[ | |p3= sectorWidth: [[Number]] - defines the width of the sector in degrees | ||
|p4= position: [[Array]] - the position which should be checked | |||
|r1= [[Boolean]] - [[true]] if the position lies within the defined sector | |||
|x1= <sqf>[getPosWorld player, getDir player, 30, getPosWorld enemy_tank] call BIS_fnc_inAngleSector;</sqf> | |||
|seealso= [[BIS_fnc_isInFrontOf]] | |seealso= [[BIS_fnc_isInFrontOf]] | ||
}} | }} |
Latest revision as of 18:06, 18 January 2023
Description
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 - true if the position lies within the defined sector
Examples
- Example 1:
Additional Information
- See also:
- BIS_fnc_isInFrontOf
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