BIS fnc getAngleDelta: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision imported: BIS Functions update 7/7)
m (pf)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma 3 |= Game name


|1.00|= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Returns the smallest difference between two angles in degrees.|= Description
Author: Nelson Duarte
____________________________________________________________________________________________


Description:
| [angleA, angleB] call [[BIS_fnc_getAngleDelta]] |= Syntax
Returns the smallest difference between 2 angles in degrees
____________________________________________________________________________________________


Parameters:
|p1= angleA: [[Number]] - First angle|= Parameter 1
_this: ARRAY
|p2= angleB: [[Number]] - Second angle|= Parameter 2
0: Angle A
1: Angle B
Returns:
NUMBER
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_getAngleDelta]]; --> |= Syntax
| [[Number]] - Angle delta|= Return value
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=  
|x1= <code>_delta = [90,193] [[call]] [[BIS_fnc_getAngleDelta]];//-103</code> |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[tan]], [[cos]], [[sin]] |= See also
 
}}
}}



Revision as of 11:57, 31 May 2018

Hover & click on the images for description

Description

Description:
Returns the smallest difference between two angles in degrees.
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
[angleA, angleB] call BIS_fnc_getAngleDelta
Parameters:
angleA: Number - First angle
angleB: Number - Second angle
Return Value:
Number - Angle delta

Examples

Example 1:
_delta = [90,193] call BIS_fnc_getAngleDelta;//-103

Additional Information

See also:
tancossin

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

Notes

Bottom Section