BIS_fnc_roundDir
Jump to navigation
Jump to search
Description
- Description:
- Round direction to nearest set rounding; used for determining cardinal direction.
- Execution:
- call
- Groups:
- Math
Syntax
- Syntax:
- [rawDirection, rounding] call BIS_fnc_roundDir
- Parameters:
- rawDirection: Number - direction to round
- rounding: Number - (Optional, default 90) - rounding value. With 90° possible return values are 0, 90, 180 and 270
- Return Value:
- Number - rounded direction, depending on input. Can be negative or over 360
Examples
- Example 1:
- Example 2:
- Example 3:
- Example 4:
Additional Information
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