acos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (template:command argument fix)
(20 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|ACOS]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|ACOS]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|ACOS]]
 
[[Category:Scripting Commands ArmA|ACOS]]
| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


<h2 style="color:#000066">'''acos ''x'''''</h2>
| ArcCosine of a number, result in [[Number#Degrees|Degrees]]|DESCRIPTION=
____________________________________________________________________________________________


|  [[Number]] <nowiki>=</nowiki> '''acos''' x |SYNTAX=


'''Operand types:'''
|p1=  x: [[Number]] |PARAMETER1=


'''x:''' [[Number]]
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_degrees = [[acos]] 0.5</code>


'''Type of returned value:'''
returns 60 |EXAMPLE1=
____________________________________________________________________________________________


[[Number]]
| [[Math Commands]] |SEEALSO=


'''Description:'''
}}


Arccosine of x, result in degrees.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


<!-- Note Section END -->
</dl>


'''Example:'''
<h3 style="display:none">Bottom Section</h3>


_angle = '''acos''' 0.5 ..........Result is 60
[[Category:Scripting Commands|ACOS]]
[[Category:Scripting Commands OFP 1.99|ACOS]]
[[Category:Scripting Commands OFP 1.96|ACOS]]
[[Category:Scripting Commands OFP 1.46|ACOS]]
[[Category:Scripting Commands ArmA|ACOS]]
[[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}}}}]]

Revision as of 15:23, 7 April 2019

Hover & click on the images for description

Description

Description:
ArcCosine of a number, result in Degrees
Groups:
Uncategorised

Syntax

Syntax:
Number = acos x
Parameters:
x: Number
Return Value:
Number

Examples

Example 1:
_degrees = acos 0.5 returns 60

Additional Information

See also:
Math 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