Difference between revisions of "Atan - Math"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Nali
imported>Threedee
m (→‎Examples: Silly error, it should be "atan" not "acos".)
 
(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 = math.atan(0) ; x == 180
float x = math.atan(0.0) ; x == 180
float y = math.acos(1) ; y == 45
float y = math.atan(1.0) ; y == 45
</source>
</source>



Latest revision as of 23: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

See Also[edit | edit source]