atan: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (template:command argument fix)
(2 intermediate revisions by the same user not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| 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=


|p1= x: [[Number]] |= Parameter 1
|p1= x: [[Number]] |PARAMETER1=


| [[Number]]
| [[Number]]


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


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


}}
}}
Line 40: Line 40:
[[Category:Scripting Commands OFP 1.46|ATAN]]
[[Category:Scripting Commands OFP 1.46|ATAN]]
[[Category:Scripting Commands ArmA|ATAN]]
[[Category:Scripting Commands ArmA|ATAN]]
[[Category:Command Group: Math|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:28, 7 April 2019

Hover & click on the images for description

Description

Description:
ArcTangent of a number, result in Degrees.
Groups:
Uncategorised

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