asin: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
m (Text replacement - "|gr1= Geometry |GROUP1=" to "|gr1= Math - Geometry |GROUP1=")
(34 intermediate revisions by 11 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#A|COMREF]]
{{Command|Comments=
____________________________________________________________________________________________


<h2 style="color:#000066">'''asin ''x'''''</h2>
| ofp |Game name=


|1.00|Game version=


'''Operand types:'''
|gr1= Math - Geometry |GROUP1=
____________________________________________________________________________________________


'''x:''' [[Number]]
| Arcsine of a number, result in [[Number#Degrees|Degrees]]. |DESCRIPTION=
____________________________________________________________________________________________


'''Type of returned value:'''
| [[Number]] <nowiki>=</nowiki> '''asin''' x |SYNTAX=


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


'''Description:'''
| [[Number]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_degrees = [[asin]] 0.5; {{cc|Returns 30}}</code>|EXAMPLE1=
____________________________________________________________________________________________


Arcsine of '''x''', result in degrees.
| [[Math Commands]]  |SEEALSO=


}}


'''Example:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


_angle = '''asin''' 0.5 ..........Result is 30
<!-- Note Section END -->
</dl>
 
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|ASIN]]
[[Category:Scripting Commands OFP 1.99|ASIN]]
[[Category:Scripting Commands OFP 1.96|ASIN]]
[[Category:Scripting Commands OFP 1.46|ASIN]]
[[Category:Scripting Commands Armed Assault|ASIN]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 00:44, 27 September 2020

Hover & click on the images for description

Description

Description:
Arcsine of a number, result in Degrees.
Groups:
Math - Geometry

Syntax

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

Examples

Example 1:
_degrees = asin 0.5; // Returns 30

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