Difference between revisions of "Atan - Math"
Jump to navigation
Jump to search
imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Calculates the arctangent of the value it is given. The returned value is in degrees. == Syntax == <source la...) |
imported>Threedee m (→Examples: Silly error, it should be "atan" not "acos".) |
||
(3 intermediate revisions by 3 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 = atan(0) ; x == 180 | float x = math.atan(0.0) ; x == 180 | ||
float y = | float y = math.atan(1.0) ; y == 45 | ||
</source> | </source> | ||
Latest revision as of 22:53, 27 July 2013
Member of: Math Script
Calculates the arctangent of the value it is given. The returned value is in degrees.
Syntax[edit | edit source]
float Function atan(float afValue) native global
Parameters[edit | edit source]
- afValue: The value to get the arctangent of.
Return Value[edit | edit source]
The arctangent of the passed-in value, in degrees.
Examples[edit | edit source]
float x = math.atan(0.0) ; x == 180
float y = math.atan(1.0) ; y == 45