Difference between revisions of "Acos - Math"
Jump to navigation
Jump to search
imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Calculates the arccosine of the value it is given. The returned value is in degrees. == Syntax == <source lan...) |
imported>JustinOther m (→Examples: Floatified afValue) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:Scripting]] | [[Category:Scripting]] | ||
[[Category:Papyrus]] | [[Category:Papyrus]] | ||
[[Category:Non-delayed Native Function]] | |||
'''Member of:''' [[Math Script]] | '''Member of:''' [[Math Script]] | ||
Line 18: | Line 19: | ||
== Examples == | == Examples == | ||
<source lang="papyrus"> | <source lang="papyrus"> | ||
float x = acos(0) ; x == 90 | float x = math.acos(0.0) ; x == 90 | ||
float y = acos(-1) ; y == 180 | float y = math.acos(-1.0) ; y == 180 | ||
</source> | </source> | ||
Latest revision as of 14:20, 8 October 2012
Member of: Math Script
Calculates the arccosine of the value it is given. The returned value is in degrees.
Syntax[edit | edit source]
float Function acos(float afValue) native global
Parameters[edit | edit source]
- afValue: The value to get the arccosine of. This value must be no greater than 1, and no less then -1.
Return Value[edit | edit source]
The arccosine of the passed-in value, in degrees.
Examples[edit | edit source]
float x = math.acos(0.0) ; x == 90
float y = math.acos(-1.0) ; y == 180