Difference between revisions of "Tan - Math"
Jump to navigation
Jump to search
imported>Jlundin (New page: Category:Scripting Category:Papyrus '''Member of:''' Math Script Calculates the tangent of the value (in degrees) it is given. == Syntax == <source lang="papyrus"> float Func...) |
imported>JustinOther m (→Examples: Floatified float params) |
||
(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 = tan(180) ; x == 0 | float x = math.tan(180.0) ; x == 0 | ||
float y = tan(45) ; y == 1 | float y = math.tan(45.0) ; y == 1 | ||
</source> | </source> | ||
Latest revision as of 10:53, 8 October 2012
Member of: Math Script
Calculates the tangent of the value (in degrees) it is given.
Syntax[edit | edit source]
float Function tan(float afValue) native global
Parameters[edit | edit source]
- afValue: The value to get the tangent of, in degrees.
Return Value[edit | edit source]
The tangent of the passed-in value.
Examples[edit | edit source]
float x = math.tan(180.0) ; x == 0
float y = math.tan(45.0) ; y == 1