atan: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)]]" to "{{GameCategory|arma2|Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| ofp |Game name=
| ofp |Game name=
Line 7: Line 6:


|gr1= Math - Geometry |GROUP1=
|gr1= Math - Geometry |GROUP1=
____________________________________________________________________________________________


| ArcTangent of a number, result in [[Number#Degrees|Degrees]]. |DESCRIPTION=
| ArcTangent of a number, result in [[Number#Degrees|Degrees]]. |DESCRIPTION=
____________________________________________________________________________________________


| '''atan''' x |SYNTAX=
| '''atan''' x |SYNTAX=
Line 19: Line 16:


<br><br>[[Image:atan.jpg|200px]]|RETURNVALUE=  
<br><br>[[Image:atan.jpg|200px]]|RETURNVALUE=  
____________________________________________________________________________________________
   
   
|x1= <code>_degrees = [[atan]] 1; //45</code>|EXAMPLE1=
|x1= <code>_degrees = [[atan]] 1; //45</code>|EXAMPLE1=
____________________________________________________________________________________________


| [[atan2]], [[Math Commands]] |SEEALSO=
| [[atan2]], [[Math Commands]] |SEEALSO=

Revision as of 01:24, 17 January 2021

Hover & click on the images for description

Description

Description:
ArcTangent of a number, result in Degrees.
Groups:
Math - Geometry

Syntax

Syntax:
atan x
Parameters:
x: Number
Return Value:
Number

atan.jpg

Examples

Example 1:
_degrees = atan 1; //45

Additional Information

See also:
atan2Math Commands

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