Tan - Math

From the CreationKit Wiki
Revision as of 18:17, 4 March 2010 by 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...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 = tan(180) ; x == 0
float y = tan(45) ; y == 1

See Also