atan: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (template:command argument fix)
m (Text replacement - "[[Image:" to "[[File:")
 
(33 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
|game1= ofp
|version1= 1.00


|1.00|= Game version
|game2= ofpe
____________________________________________________________________________________________
|version2= 1.00


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


| '''atan''' x |SYNTAX=
|game4= arma2
|version4= 1.00


|p1= x: [[Number]] |PARAMETER1=
|game5= arma2oa
|version5= 1.50


| [[Number]]
|game6= tkoh
|version6= 1.00


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


| [[atan2]], [[Math Commands]] |SEEALSO=
|gr1= Math - Geometry


}}
|descr= Returns the '''arcus tangens'''.<br><br>[[File:atan.jpg|200px]]
 
|alias= [[atg]]
 
|s1= [[atan]]  x
 
|p1= x: [[Number]]


<h3 style="display:none">Notes</h3>
|r1= [[Number]] - result is in degrees
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
|x1= <sqf>_degrees = atan 1; // 45</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[atg]] [[atan2]]


[[Category:Scripting Commands|ATAN]]
}}
[[Category:Scripting Commands OFP 1.99|ATAN]]
[[Category:Scripting Commands OFP 1.96|ATAN]]
[[Category:Scripting Commands OFP 1.46|ATAN]]
[[Category:Scripting Commands ArmA|ATAN]]
[[Category:Command_Group:_Math|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:11, 21 November 2023

Hover & click on the images for description

Description

Description:
Returns the arcus tangens.

atan.jpg
Alias:
atg
Groups:
Math - Geometry

Syntax

Syntax:
atan x
Parameters:
x: Number
Return Value:
Number - result is in degrees

Examples

Example 1:
_degrees = atan 1; // 45

Additional Information

See also:
atg atan2

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