Tan - Math

From the Fallout4 CreationKit Wiki
Revision as of 14:12, 2 December 2015 by imported>Plplecuyer
(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[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 = tan(180) ; x == 0
float y = tan(45) ; y == 1

See Also[edit | edit source]