acos: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
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 degrees |= Description
____________________________________________________________________________________________


| '''acos''' x |= Syntax


'''Operand types:'''
|p1= x: [[Number]] |= Parameter 1


'''x:''' [[Number]]
| [[Number]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>_cos = acos 0.6</pre>


'''Type of returned value:'''
returns 60 |= Example 1
____________________________________________________________________________________________


[[Number]]
| [[cos]], [[sin]], [[asin]] |= See also


'''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.96|ACOS]]
[[Category:Scripting Commands OFP 1.46|ACOS]]
[[Category:Scripting Commands ArmA|ACOS]]

Revision as of 22:49, 1 August 2006

Hover & click on the images for description

Description

Description:
Arccosine of a number, result in degrees
Groups:
Uncategorised

Syntax

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

Examples

Example 1:
_cos = acos 0.6
returns 60

Additional Information

See also:
cossinasin

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