atan: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "[[Image:" to "[[File:")
 
(48 intermediate revisions by 11 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


| Arctangens of a number, result in degrees. |= Description
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| [[Number]] <nowiki>=</nowiki> '''atan''' [[Number]] |= Syntax
|game4= arma2
|version4= 1.00


|p1= [[Number]] |= Parameter 1
|game5= arma2oa
|version5= 1.50


| [[Number]] |= Return value
|game6= tkoh
____________________________________________________________________________________________
|version6= 1.00
 
|x1= <pre>atan 1</pre>


returns 45 |= Example 1
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50


| [[atan2]], [[tan]] |= See also
|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.96|ATAN]]
[[Category:Scripting Commands OFP 1.46|ATAN]]
[[Category:Scripting Commands ArmA|ATAN]]
[[Category:Command_Group:_Math|{{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