Difference between revisions of "Tan - Math"

From the CreationKit Wiki
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>Nali
Line 18: Line 18:
== Examples ==
== Examples ==
<source lang="papyrus">
<source lang="papyrus">
float x = tan(180) ; x == 0
float x = math.tan(180) ; x == 0
float y = tan(45) ; y == 1
float y = math.tan(45) ; y == 1
</source>
</source>



Revision as of 08:05, 10 February 2012

Member of: Math Script

Calculates the tangent of the value (in degrees) it is given.

Syntax

float Function tan(float afValue) native global

Parameters

  • afValue: The value to get the tangent of, in degrees.

Return Value

The tangent of the passed-in value.

Examples

float x = math.tan(180) ; x == 0
float y = math.tan(45) ; y == 1

See Also