BIS fnc getAngleDelta: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *S([a-z ])" to "$1 - s$2")
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Geometry


|1.00|= Game version
|descr= Returns the smallest difference between two angles in degrees.
____________________________________________________________________________________________


| <pre>/*
|s1= [angleA, angleB] call [[BIS_fnc_getAngleDelta]]
Author: Nelson Duarte


Description:
|p1= angleA: [[Number]] - first angle
Returns the smallest difference between 2 angles in degrees
|p2= angleB: [[Number]] - second angle


Parameters:
|r1= [[Number]] - angle delta
_this: ARRAY
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
|x1= <sqf>private _delta = [90,193] call BIS_fnc_getAngleDelta;//-103</sqf>
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[tan]] [[cos]] [[sin]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Math|{{uc:getAngleDelta}}]]
[[Category:Functions|{{uc:getAngleDelta}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:getAngleDelta}}]]

Latest revision as of 16:49, 8 November 2023

Hover & click on the images for description

Description

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

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:
private _delta = [90,193] call BIS_fnc_getAngleDelta;//-103

Additional Information

See also:
tan cos sin

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